[keycloak-user] Undertow adapter setup

Iván Perdomo ivan at akvo.org
Mon Jun 6 06:21:10 EDT 2016


Hi all,

I'm trying to setup a small example of Keycloak's Undertow adapter.
Using Keycloak 1.9.7.Final and Undertow 1.3.15.Final

I've read about the Undertow's security model (SecurityContext,
AuthenticationMechanism, SecurityInitialHandler, etc) [1]

Part of my sample code was borrowed from Keycloak's ProxyServer [2]

However, I'm not able to "trigger/force" the authentication. The
SecurityContext is there, but the authentication state is
`NOT_ATTEMPTED`. Any hints on what I'm doing wrong in this code? [3]


[1] http://undertow.io/undertow-docs/undertow-docs-1.3.0/index.html#security

[2]
https://github.com/keycloak/keycloak/blob/1.9.7.Final/proxy/proxy-server/src/main/java/org/keycloak/proxy/ProxyServerBuilder.java#L249

[3]
https://github.com/iperdomo/undertow-keycloak/blob/master/src/main/java/SecuredServer.java

Thanks,

-- 
Iván

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20160606/4779b055/attachment.bin 


More information about the keycloak-user mailing list