[keycloak-user] [spring-boot-adapter] get token/principal/etc.

Pavel Maslov pavel.masloff at gmail.com
Fri Dec 28 05:22:11 EST 2018


Hi, guys. Haven't been here for quite a while :)


I'm using the Springboot Keycloak adapter
(org.keycloak:keycloak-spring-boot-starter:4.6.0.Final) to secure my REST
API via bearer token [1]. And it works! Cool.

Now, I would like to get the access token in my @RestController, or even
better some information about the user. Is it possible?

Thanks in advance.

Regards,
Pavel Maslov, MS

[1] https://github.com/maslick/barkoder


More information about the keycloak-user mailing list