We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While technically an instance of Keycloak would have a function assigned to its onTokenExpired field, these are intended to be used as event handlers.
Keycloak
onTokenExpired
See https://www.keycloak.org/docs/latest/securing_apps/#callback-events for documentation on how they are intended to be used.
For example,
domino-keycloak/src/main/java/org/dominokit/keycloak/Keycloak.java
Line 87 in b6828ab
@JsFunction
@JsFunction @FunctionalInterface public interface EventCallback { void invoke(); }
Keycloak.java
public EventCallback onTokenExpired;
Then, it can be assigned with a lambda/etc, so that the token can be refreshed:
// from https://stackoverflow.com/a/57855752/860630 keycloak.onTokenExpired = () -> { keycloak.updateToken(30); //TODO handle errors to return to login screen... };
The text was updated successfully, but these errors were encountered:
fix #3 Keycloak.java events are instead exposed as void methods
00638d9
903fb38
e3bb7e3
e4d669f
vegegoku
Successfully merging a pull request may close this issue.
While technically an instance of
Keycloak
would have a function assigned to itsonTokenExpired
field, these are intended to be used as event handlers.See https://www.keycloak.org/docs/latest/securing_apps/#callback-events for documentation on how they are intended to be used.
For example,
domino-keycloak/src/main/java/org/dominokit/keycloak/Keycloak.java
Line 87 in b6828ab
@JsFunction
typeKeycloak.java
Then, it can be assigned with a lambda/etc, so that the token can be refreshed:
The text was updated successfully, but these errors were encountered: