[keycloak-user] How to generate jwt?
Hynek Mlnarik
hmlnarik at redhat.com
Tue Feb 20 02:49:36 EST 2018
Depends a lot on what JWT you want to issue. For samples of generating
access token, see [1], for action token, see [2], custom, see [3].
[1]
https://github.com/keycloak/keycloak/blob/master/services/src/main/java/org/keycloak/protocol/oidc/TokenManager.java#L698
[2]
https://github.com/keycloak/keycloak/blob/master/services/src/main/java/org/keycloak/authentication/actiontoken/DefaultActionToken.java#L140
[3]
https://github.com/keycloak/keycloak/blob/master/core/src/main/java/org/keycloak/jose/jws/JWSBuilder.java
On Tue, Feb 20, 2018 at 2:46 AM, Anton <kurrent93 at gmail.com> wrote:
> Hello
>
> We are trying to integrate Keycloak into both a mobile app and also a web
> app.
>
> We need to be able to generate jwt tokens, specifically for development and
> research.
>
> Is there an api we can call that will return a jwt token? We cannot find
> anything in the docs about how to do this - which seems odd, I assumed this
> would be a very commonly used feature.
>
> Any help is appreciated.
>
> Regards
> Anton
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
--
--Hynek
More information about the keycloak-user
mailing list