Class OidcTokenCredentialProducer

java.lang.Object
io.quarkus.oidc.runtime.OidcTokenCredentialProducer

@RequestScoped public class OidcTokenCredentialProducer extends Object
  • Field Details

    • identity

      @Inject io.quarkus.security.identity.SecurityIdentity identity
  • Constructor Details

    • OidcTokenCredentialProducer

      public OidcTokenCredentialProducer()
  • Method Details

    • currentIdToken

      @Produces @RequestScoped IdTokenCredential currentIdToken()
      The producer method for the current id token
      Returns:
      the id token
    • currentAccessToken

      @Produces @RequestScoped @Alternative @Priority(1) AccessTokenCredential currentAccessToken()
    • currentRefreshToken

      @Produces @RequestScoped RefreshToken currentRefreshToken()
    • currentUserInfo

      @Produces @RequestScoped UserInfo currentUserInfo()
      The producer method for the current UserInfo
      Returns:
      the user info
    • idTokenIntrospection

      @Produces @RequestScoped TokenIntrospection idTokenIntrospection()
      The producer method for the ID token TokenIntrospection only.
      Returns:
      the ID token introspection
    • tokenIntrospection

      @Produces @RequestScoped TokenIntrospection tokenIntrospection()
      The producer method for the current TokenIntrospection.

      This TokenIntrospection always represents the bearer access token introspection when the bearer access tokens are used.

      In case of the authorization code flow, it represents a code flow access token introspection if it has been enabled by setting the `quarkus.oidc.authentication.verify-access-token` property to `true` and an ID token introspection otherwise. Use the `@IdToken` qualifier if both ID and code flow access tokens must be introspected.

      Returns:
      the token introspection
    • tokenIntrospectionFromIdentityAttribute

      TokenIntrospection tokenIntrospectionFromIdentityAttribute()