trait OpenIDConnectService extends AnyRef
Service class for the OpenID Connect authentication.
- Self Type
- OpenIDConnectService with AccountFederationService
- Alphabetic
- By Inheritance
- OpenIDConnectService
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def authenticate(params: Map[String, String], redirectURI: URI, state: State, nonce: Nonce, oidc: OIDC)(implicit s: (blockingApi)#Session): Option[(JWT, Account)]
Proceed the OpenID Connect authentication.
Proceed the OpenID Connect authentication.
- params
Query parameters of the authentication response
- redirectURI
Redirect URI
- state
State saved in the session
- nonce
Nonce saved in the session
- oidc
OIDC settings
- returns
(ID token, GitBucket account)
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def createOIDCAuthenticationRequest(issuer: Issuer, clientID: ClientID, redirectURI: URI): AuthenticationRequest
Obtain the OIDC metadata from discovery and create an authentication request.
Obtain the OIDC metadata from discovery and create an authentication request.
- issuer
Issuer, used to construct the discovery endpoint URL, e.g. https://accounts.google.com
- clientID
Client ID (given by the issuer)
- redirectURI
Redirect URI
- returns
Authentication request
- def createOIDLogoutRequest(issuer: Issuer, clientID: ClientID, redirectURI: URI, token: JWT): LogoutRequest
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def obtainOIDCToken(authorizationCode: AuthorizationCode, nonce: Nonce, redirectURI: URI, oidc: OIDC): Option[(JWT, IDTokenClaimsSet)]
Obtain the ID token from the OpenID Provider.
Obtain the ID token from the OpenID Provider.
- authorizationCode
Authorization code in the query string
- nonce
Nonce
- redirectURI
Redirect URI
- oidc
OIDC settings
- returns
Token response
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def validateOIDCAuthenticationResponse(params: Map[String, String], state: State, redirectURI: URI): Option[AuthenticationSuccessResponse]
Validate the authentication response.
Validate the authentication response.
- params
Query parameters of the authentication response
- state
State saved in the session
- redirectURI
Redirect URI
- returns
Authentication response
- def validateOIDCTokenResponse(response: OIDCTokenResponse, metadata: OIDCProviderMetadata, nonce: Nonce, oidc: OIDC): Option[(JWT, IDTokenClaimsSet)]
Validate the token response.
Validate the token response.
- response
Token response
- metadata
OpenID Provider metadata
- nonce
Nonce
- returns
Claims
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)