[keycloak-user] Undertow adapter setup

Iván Perdomo ivan at akvo.org
Mon Jun 6 11:36:29 EDT 2016


Hi again,

I made it work. I can authenticate a sample Undertow server with
Keycloak. The code is published:

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

Cheers,

On 06/06/2016 12:21 PM, Iván Perdomo wrote:
> 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,
> 
> 
> 
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
> 

-- 
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/57b0e22d/attachment.bin 


More information about the keycloak-user mailing list