[keycloak-user] Proxy configuration issue

Bill Burke bburke at redhat.com
Thu Nov 19 09:45:42 EST 2015


Can't really see the screenshot, but you have to point keycloak to the 
host/port of the proxy.

On 11/19/2015 9:13 AM, Adrian Matei wrote:
> Hi everyone,
>
> I am trying to make a simple test and configure a keycloak proxy to
> protect an application running on http://localhost:8280/backend/
>
> 1.
> My proxy.json configuration looks like the following:
>
> {
>      "target-url": "http://localhost:8280/",
>      "send-access-token": false,
>      "bind-address": "localhost",
>      "http-port": "8080",
>      "applications": [
>          {
>              "base-path": "/backend",
>              "error-page": "/error.html",
>              "adapter-config": {
>                  "realm": "demo",
>                  "resource": "sandbox-backend",
>                  "realm-public-key":
> "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrVrCuTtArbgaZzL1hvh0xtL5mc7o0NqPVnYXkLvgcwiC3BjLGw1tGEGoJaXDuSaRllobm53JBhjx33UNv+5z/UMG4kytBWxheNVKnL6GgqlNabMaFfPLPCF8kAgKnsi79NMo+n6KnSY8YeUmec/p2vjO2NjsSAVcWEQMVhJ31LwIDAQAB",
>                  "auth-server-url": "http://localhost:8180/auth",
>                  "ssl-required" : "external",
>                  "credentials": {
>                      "secret": "9323cdd6-7e0e-46ce-814f-b5ac79581395"
>                  }
>              }
>          }
>      ]
> }
>
> 2.
> I've started the proxy server as specified in the documentation "java
> -jar bin/launcher.jar proxy.json"
> I am getting an error "ERROR: UT005026: Jetty ALPN support not found on
> boot class path, SPDY client will not be available.", but the server
> still starts, I don't think there should be a problem with that...
>
> 3. In the admin console (keycloak running on port 8180) I've configured
> the backend application like the following:
>
> Could you tell me what I am doing wrong? When I put in the app's url in
> the browser it goes directly to the application...
>
> Thanks,
> Adrian
>>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com


More information about the keycloak-user mailing list