Class OidcProcess
The process implements the state machine that is needed to complete an OpenID Connect authentication cycle.
A process is created for a particular scope, which represents what kind of information one wants to access, and which is used to inform the user of the kind of operations he needs to authorize for your application to make with his protected data.
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.auth.OAuthProcess
OAuthProcess.TokenError
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getIdentity
(OAuthAccessToken token) Obtains an authenticated identity.void
Starts an authorization and authentication process.Methods inherited from class eu.webtoolkit.jwt.auth.OAuthProcess
authenticated, authorized, connectStartAuthenticate, getError, getScope, getService, getToken, parseTokenResponse, setError, startAuthorize
Methods inherited from class eu.webtoolkit.jwt.WObject
getId, getObjectName, remove, setFormData, setObjectName, tr
-
Constructor Details
-
OidcProcess
-
-
Method Details
-
startAuthenticate
public void startAuthenticate()Starts an authorization and authentication process.This is
OAuthProcess.startAuthorize()
followed bygetIdentity()
.The authentication process ends with the
OAuthProcess.authenticated()
signal which signals the obtained identity.Note: To be able to use a popup (instead of a page redirect), you should connect this method directly to an, since popup windows are blocked in most web browsers unless they are the direct consequence of an event.
- Overrides:
startAuthenticate
in classOAuthProcess
-
getIdentity
Obtains an authenticated identity.The authentication process will either use the ID token included with the access token or, when this is not available, request the identity at the user info endpoint using claims.
The authentication process ends with the
OAuthProcess.authenticated()
signal which signals the obtained identity.- Overrides:
getIdentity
in classOAuthProcess
-