From cmoullia at redhat.com Tue Dec 20 04:19:27 2016 Content-Type: multipart/mixed; boundary="===============2094468744973992286==" MIME-Version: 1.0 From: Charles Moulliard To: keycloak-user at lists.jboss.org Subject: [keycloak-user] Red Hat SSO - Issue on OpenShift Dedicated Date: Tue, 20 Dec 2016 10:18:45 +0100 Message-ID: --===============2094468744973992286== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, This project (=3D Spring Boot App secured with Red Hat SSO & Keycloak Adapter) which was working last Friday on " https://console.engint.openshift.com/console" doesn't work anymore If I issue a curl/httpie request, I receive a token but next when I try to access the service, OpenShift returns ./scripts/httpie/token_req.sh >>> Greeting GET /greeting HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate Authorization: Bearer eyJhbGciOiJSUzI1NiJ9...AC7tLlhit79g Connection: keep-alive Host: secured-springboot-rest-sso.e8ca.engint.openshiftapps.com User-Agent: HTTPie/0.9.6 HTTP/1.0 503 Service Unavailable Cache-Control: no-cache Connection: close Content-Type: text/html

503 Service Unavailable

No server is available to handle this request. When I issue a curl request within the pod running the SpringBoot app, I get a response from the Red Hat SSO Server sh-4.2$ more /etc/hosts # Kubernetes-managed hosts file. 127.0.0.1 localhost 10.1.7.20 secured-springboot-rest-5-7tcxs sh-4.2$ curl -k -v http://10.1.7.20:8080/greeting * About to connect() to 10.1.7.20 port 8080 (#0) * Trying 10.1.7.20... * Connected to 10.1.7.20 (10.1.7.20) port 8080 (#0) > GET /greeting HTTP/1.1 > User-Agent: curl/7.29.0 > Host: 10.1.7.20:8080 > Accept: */* > < HTTP/1.1 302 Found < Server: Apache-Coyote/1.1 < Cache-Control: private < Expires: Thu, 01 Jan 1970 00:00:00 UTC < Set-Cookie: JSESSIONID=3DC6437B316FE0C08F833B0B5F9DEEB231; Path=3D/; Http= Only < Set-Cookie: OAuth_Token_Request_State=3D5/64fcf1a6-1b05-4235-8463-3eb024e1a0c5; Version=3D1; HttpOnly < Location: https://secure-sso-sso.e8ca.engint.openshiftapps.com/auth/realms/master/pro= tocol/openid-connect/auth?response_type=3Dcode&client_id=3Ddemoapp&redirect= _uri=3Dhttp%3A%2F%2F10.1.7.20%3A8080%2Fgreeting&state=3D5%2F64fc f1a6-1b05-4235-8463-3eb024e1a0c5&login=3Dtrue What is the problem ? Regards, Charles --===============2094468744973992286==--