Class OidcNopProvider
java.lang.Object
net.datenwerke.oidc.client.provider.OidcNopProvider
- All Implemented Interfaces:
OidcService,OidcProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Dummy oidc provider used when oidc is deactivated in properties to avoid errors and being stuck during init.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the OpenID Connect (OIDC) ID token associated with the current user session.getLogoutUrl(String redirectUri) Returns the url that needs to be called to terminate the session of the implementing oidc provider containing the redirect uri where the user is redirected to after logout.getToken()Returns the jwt access token as string associated with the current session if any or null otherwise.voidLogin method called when hitting the oidc login button.voidregisterCallback(OidcCallback callback) Register anyOidcCallbackat the implementing oidc provider.
-
Constructor Details
-
OidcNopProvider
public OidcNopProvider()
-
-
Method Details
-
getLogoutUrl
Returns the url that needs to be called to terminate the session of the implementing oidc provider containing the redirect uri where the user is redirected to after logout.NOP: just return the redirect uri. Important for
LoginService.- Specified by:
getLogoutUrlin interfaceOidcProvider- Parameters:
redirectUri- The redirect uri to be included in the logout url.- Returns:
- The oidc logout url including the redirect uri.
-
getToken
Returns the jwt access token as string associated with the current session if any or null otherwise.NOP: just return the null.
- Specified by:
getTokenin interfaceOidcProvider- Returns:
- The jwt access token or null if no session.
-
getIdToken
Returns the OpenID Connect (OIDC) ID token associated with the current user session.The ID token is a token issued by the OIDC provider during authentication. It primarily contains identity information about the authenticated user (e.g.
sub,preferred_username,email).Unlike the access token, which is used to authorize API calls and can be introspected by the resource server, the ID token is meant for the client itself to verify the user’s identity.
NOP: just return null.
- Specified by:
getIdTokenin interfaceOidcProvider- Returns:
- the ID token or
nullif no ID token is available
-
login
Login method called when hitting the oidc login button. This method redirects to the actual login of the implementing oidc provider.NOP: do nothing.
- Specified by:
loginin interfaceOidcProvider- Parameters:
locale- The locale to be used on oidc provider login page.
-