Class OidcLoginAttemptOperations

java.lang.Object
dev.getelements.elements.service.auth.oidc.OidcLoginAttemptOperations

public class OidcLoginAttemptOperations extends Object
Orchestrates the provider-agnostic, browser-redirect OIDC login flow: starting a pending attempt, polling for completion, and handling the provider's callback. All state (id/state/nonce), the code exchange, and id_token validation happen here, server-side, per the design — the client only ever sees an opaque id and the Elements session it eventually resolves to.
  • Constructor Details

    • OidcLoginAttemptOperations

      public OidcLoginAttemptOperations()
  • Method Details

    • begin

      public dev.getelements.elements.sdk.model.session.OidcLoginAttemptBegin begin(String provider)
    • poll

      public dev.getelements.elements.sdk.model.session.OidcLoginAttemptStatusResponse poll(String id)
    • handleCallback

      public dev.getelements.elements.sdk.model.session.OidcLoginAttemptCallbackResult handleCallback(String provider, String code, String state, String error)
    • getOidcProviderConfigurationDao

      public dev.getelements.elements.sdk.dao.OidcProviderConfigurationDao getOidcProviderConfigurationDao()
    • setOidcProviderConfigurationDao

      @Inject public void setOidcProviderConfigurationDao(dev.getelements.elements.sdk.dao.OidcProviderConfigurationDao oidcProviderConfigurationDao)
    • getOidcLoginAttemptDao

      public dev.getelements.elements.sdk.dao.OidcLoginAttemptDao getOidcLoginAttemptDao()
    • setOidcLoginAttemptDao

      @Inject public void setOidcLoginAttemptDao(dev.getelements.elements.sdk.dao.OidcLoginAttemptDao oidcLoginAttemptDao)
    • getOidcProviderConfigurationOperations

      public OidcProviderConfigurationOperations getOidcProviderConfigurationOperations()
    • setOidcProviderConfigurationOperations

      @Inject public void setOidcProviderConfigurationOperations(OidcProviderConfigurationOperations oidcProviderConfigurationOperations)
    • getOidcAuthServiceOperations

      public OidcAuthServiceOperations getOidcAuthServiceOperations()
    • setOidcAuthServiceOperations

      @Inject public void setOidcAuthServiceOperations(OidcAuthServiceOperations oidcAuthServiceOperations)
    • getAnonOidcAuthService

      public AnonOidcAuthService getAnonOidcAuthService()
    • setAnonOidcAuthService

      @Inject public void setAnonOidcAuthService(AnonOidcAuthService anonOidcAuthService)
    • getClient

      public jakarta.ws.rs.client.Client getClient()
    • setClient

      @Inject public void setClient(jakarta.ws.rs.client.Client client)
    • getTtlSeconds

      public long getTtlSeconds()
    • setTtlSeconds

      @Inject public void setTtlSeconds(@Named("dev.getelements.elements.oidc.login.attempt.ttl.seconds") long ttlSeconds)