Package io.meeds.oauth.service
Interface OAuthRegistrationService
- All Known Implementing Classes:
OAuthRegistrationServiceImpl
public interface OAuthRegistrationService
-
Method Summary
Modifier and TypeMethodDescriptionorg.exoplatform.services.organization.UsercreateGateInUser(OAuthPrincipal<? extends AccessTokenContext> principal) Creates a new User with oAuth authenticated user attributesorg.exoplatform.services.organization.UserdetectGateInUser(jakarta.servlet.http.HttpServletRequest request, OAuthPrincipal<? extends AccessTokenContext> principal) attempts to detect if a user account already exists for current social network userbooleanisRegistrationOnFly(OAuthProviderType<? extends AccessTokenContext> oauthProviderType) voidupdateUserIdentityAvatar(String username, OAuthPrincipal<? extends AccessTokenContext> principal) Saves User Avatar from oAuth Provider into userIdentityvoidupdateUserProfileAttributes(String username, OAuthProviderType<?> providerType) Saves user OAuth profile attributes inUserProfileentity
-
Method Details
-
isRegistrationOnFly
-
detectGateInUser
org.exoplatform.services.organization.User detectGateInUser(jakarta.servlet.http.HttpServletRequest request, OAuthPrincipal<? extends AccessTokenContext> principal) attempts to detect if a user account already exists for current social network user- Parameters:
request-principal-- Returns:
- existing user
-
createGateInUser
org.exoplatform.services.organization.User createGateInUser(OAuthPrincipal<? extends AccessTokenContext> principal) Creates a new User with oAuth authenticated user attributes- Parameters:
principal-OAuthPrincipalof authenticated user- Returns:
- newly created user
-
updateUserProfileAttributes
void updateUserProfileAttributes(String username, OAuthProviderType<?> providerType) throws Exception Saves user OAuth profile attributes inUserProfileentity- Parameters:
username- existingUserentity username attributeproviderType-OAuthProviderType- Throws:
Exception- when error occurs while saving user profile
-
updateUserIdentityAvatar
void updateUserIdentityAvatar(String username, OAuthPrincipal<? extends AccessTokenContext> principal) Saves User Avatar from oAuth Provider into userIdentity- Parameters:
username- existingUserentity username attributeprincipal-OAuthPrincipalof authenticated user
-