[keycloak-user] Proxy configuration issue

Adrian Matei adrianmatei at gmail.com
Thu Nov 19 09:13:09 EST 2015


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
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151119/8f824083/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2015-11-19 15:10:20.png
Type: image/png
Size: 162985 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20151119/8f824083/attachment-0001.png 


More information about the keycloak-user mailing list