```java
KeycloakSession session = ResteasyProviderFactory.getContextData(KeycloakSession.class);
AuthenticationManager.AuthResult authResult = new AppAuthManager.BearerTokenAuthenticator(session).authenticate();
AccessToken token = authResult.getToken();
```
Created
April 28, 2021 14:49
-
-
Save thomasdarimont/621d26c019145d132b6f91f9cbb520c3 to your computer and use it in GitHub Desktop.
Keycloak-Snippet get current access token
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment