Class KeycloakOIDCAuthenticationSupplier
java.lang.Object
org.neo4j.connectors.authn.keycloak.KeycloakOIDCAuthenticationSupplier
- All Implemented Interfaces:
Supplier<AuthenticationToken>
public class KeycloakOIDCAuthenticationSupplier
extends Object
implements Supplier<AuthenticationToken>
This supplier uses OAth2 resource owner flow via the Keycloak client.
-
Method Summary
-
Method Details
-
of
public static Supplier<AuthenticationToken> of(String username, String password, org.keycloak.authorization.client.Configuration config) -
currentTokenIsExpired
public boolean currentTokenIsExpired()- Returns:
- true if a token has been retrieved and it is expired
-
get
- Specified by:
getin interfaceSupplier<AuthenticationToken>
-