Package ch.tocco.nice2.sso.impl
Class OpenIdHelperServiceImpl
java.lang.Object
ch.tocco.nice2.sso.impl.OpenIdHelperServiceImpl
- All Implemented Interfaces:
OpenIdHelperService
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOpenIdHelperServiceImpl
(Context context, SecurityManager securityManager, QueryBuilderFactory queryBuilderFactory) -
Method Summary
Modifier and TypeMethodDescription@Nullable URI
buildAuthenticationURI
(jakarta.servlet.http.HttpSession session, boolean lookupOnly, String openidProvider, String redirectUri, @Nullable String sourceUri, @Nullable String targetUri) @Nullable Entity
findPrincipal
(String subject, Entity provider) @Nullable OpenIdNonce
getOpenidNonce
(jakarta.servlet.http.HttpSession session, com.nimbusds.oauth2.sdk.id.State state) principalIsActive
(Entity principal) processAuthenticationRequest
(jakarta.servlet.http.HttpSession session, com.nimbusds.oauth2.sdk.id.State state, @Nullable com.nimbusds.oauth2.sdk.AuthorizationCode authorizationCode) void
setDomainHint
(String supportProviderDomainHint) void
setFlows
(List<OpenIdAuthenticationFlow> flows) void
setMetadataStrategies
(List<MetadataStrategy> metadataStrategies) void
setSupportProviderClientId
(String supportProviderClientId) void
setSupportProviderClientSecret
(String supportProviderClientSecret) void
setSupportProviderDiscoveryUrl
(String supportProviderDiscoveryUrl)
-
Field Details
-
UNIQUE_ID_FIELD_NAME
- See Also:
-
-
Constructor Details
-
OpenIdHelperServiceImpl
public OpenIdHelperServiceImpl(Context context, SecurityManager securityManager, QueryBuilderFactory queryBuilderFactory)
-
-
Method Details
-
processAuthenticationRequest
public OpenIdAuthenticationInformation processAuthenticationRequest(jakarta.servlet.http.HttpSession session, com.nimbusds.oauth2.sdk.id.State state, @Nullable @Nullable com.nimbusds.oauth2.sdk.AuthorizationCode authorizationCode) throws OpenIdAuthenticationException - Specified by:
processAuthenticationRequest
in interfaceOpenIdHelperService
- Throws:
OpenIdAuthenticationException
-
getOpenidNonce
@Nullable public @Nullable OpenIdNonce getOpenidNonce(jakarta.servlet.http.HttpSession session, com.nimbusds.oauth2.sdk.id.State state) - Specified by:
getOpenidNonce
in interfaceOpenIdHelperService
-
buildAuthenticationURI
@Nullable public @Nullable URI buildAuthenticationURI(jakarta.servlet.http.HttpSession session, boolean lookupOnly, String openidProvider, String redirectUri, @Nullable @Nullable String sourceUri, @Nullable @Nullable String targetUri) throws OpenIdAuthenticationException - Specified by:
buildAuthenticationURI
in interfaceOpenIdHelperService
- Throws:
OpenIdAuthenticationException
-
findPrincipal
- Specified by:
findPrincipal
in interfaceOpenIdHelperService
-
principalIsActive
- Specified by:
principalIsActive
in interfaceOpenIdHelperService
-
setFlows
-
setMetadataStrategies
-
setSupportProviderClientId
@Value("${nice2.sso.supportProvider.clientId}") public void setSupportProviderClientId(String supportProviderClientId) -
setSupportProviderClientSecret
@Value("${nice2.sso.supportProvider.clientSecret}") public void setSupportProviderClientSecret(String supportProviderClientSecret) -
setSupportProviderDiscoveryUrl
@Value("${nice2.sso.supportProvider.discoveryUrl}") public void setSupportProviderDiscoveryUrl(String supportProviderDiscoveryUrl) -
setDomainHint
@Value("${nice2.sso.supportProvider.domainHint}") public void setDomainHint(String supportProviderDomainHint)
-