Package org.cyclos.impl.access
Interface InternalIdentityProviderServiceLocal
-
- All Superinterfaces:
InternalIdentityProviderService,Service
public interface InternalIdentityProviderServiceLocal extends InternalIdentityProviderService
Local interface forInternalIdentityProviderService
-
-
Field Summary
Fields Modifier and Type Field Description static StringCHANNELstatic StringPROFILEstatic StringREQUESTstatic StringREQUEST_DATAstatic StringSESSION_TOKEN
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckExists(String requestId)Checks that a request with the given existsvoidfinishRegistration(User user, PublicRegistrationDTO dto)Performs the linking of the given user with the provider after finishing the registration process via form.static org.pac4j.core.profile.CommonProfilegetProfile(SimpleBasicUserRegistrationDTO reg)org.pac4j.core.profile.CommonProfilegetRegistrationProfile(PublicRegistrationDTO dto)Returns the profile read from the identity providerIdentityProviderNotLinkReasonlinkAfterLogin(Session session, String requestId)Links a user that just logged in to the identity provider.IdentityProviderRequestResultrequest(@NotNull IdentityProviderRequest request)Prepares an operation using an identity provider.static voidsetProfile(PublicRegistrationDTO dto, org.pac4j.core.profile.CommonProfile profile)-
Methods inherited from interface org.cyclos.services.access.InternalIdentityProviderService
callback, redirect
-
-
-
-
Field Detail
-
REQUEST
static final String REQUEST
- See Also:
- Constant Field Values
-
CHANNEL
static final String CHANNEL
- See Also:
- Constant Field Values
-
REQUEST_DATA
static final String REQUEST_DATA
- See Also:
- Constant Field Values
-
SESSION_TOKEN
static final String SESSION_TOKEN
- See Also:
- Constant Field Values
-
PROFILE
static final String PROFILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getProfile
static org.pac4j.core.profile.CommonProfile getProfile(SimpleBasicUserRegistrationDTO reg)
-
setProfile
static void setProfile(PublicRegistrationDTO dto, org.pac4j.core.profile.CommonProfile profile)
-
checkExists
void checkExists(String requestId) throws EntityNotFoundException
Checks that a request with the given exists- Throws:
EntityNotFoundException
-
finishRegistration
void finishRegistration(User user, PublicRegistrationDTO dto)
Performs the linking of the given user with the provider after finishing the registration process via form.
-
getRegistrationProfile
org.pac4j.core.profile.CommonProfile getRegistrationProfile(PublicRegistrationDTO dto)
Returns the profile read from the identity provider
-
linkAfterLogin
IdentityProviderNotLinkReason linkAfterLogin(Session session, String requestId)
Links a user that just logged in to the identity provider. Returns the reason if the link was ignored (e.g for being a global user attempting to link with a network) provider. Otherwise if the link could be done then return null
-
request
IdentityProviderRequestResult request(@NotNull @NotNull IdentityProviderRequest request)
Prepares an operation using an identity provider.- Specified by:
requestin interfaceInternalIdentityProviderService
-
-