Class OAuth2UserSuccessHandler
java.lang.Object
sk.iway.iwcm.system.spring.oauth2.AbstractOAuth2SuccessHandler
sk.iway.iwcm.system.spring.oauth2.OAuth2UserSuccessHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationSuccessHandler
OAuth2 Success Handler for customer zone (user logon)
Unlike OAuth2AdminSuccessHandler for admin zone:
- Does not set isAdmin flag
- Does not set permission groups
- Maps only user groups
-
Field Summary
Fields inherited from class sk.iway.iwcm.system.spring.oauth2.AbstractOAuth2SuccessHandler
EMAIL_ATTRIBUTE, FAMILY_NAME_ATTRIBUTE, GIVEN_NAME_ATTRIBUTE, GROUP_MEMBERSHIP_ATTRIBUTE, GROUPS_ATTRIBUTE, PICTURE_ATTRIBUTE, REALM_ACCESS_ATTRIBUTE, RESOURCE_ACCESS_ATTRIBUTE, ROLE_PREFIX, ROLES_ATTRIBUTE, USERNAME_ATTRIBUTE_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) Methods inherited from class sk.iway.iwcm.system.spring.oauth2.AbstractOAuth2SuccessHandler
createNewUserFromOAuth2, extractFromAttribute, extractFromRealmAccess, extractFromResourceAccess, extractGroupsFromOAuth2, extractRolesFromClientResource, extractRolesFromRolesObject, getProviderId, getUsernameAttribute, handleError, logOAuth2Attributes, shouldSyncPermissions, updateExistingUserFromOAuth2Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.web.authentication.AuthenticationSuccessHandler
onAuthenticationSuccess
-
Constructor Details
-
OAuth2UserSuccessHandler
public OAuth2UserSuccessHandler()
-
-
Method Details
-
onAuthenticationSuccess
public void onAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws IOException - Specified by:
onAuthenticationSuccessin interfaceorg.springframework.security.web.authentication.AuthenticationSuccessHandler- Specified by:
onAuthenticationSuccessin classAbstractOAuth2SuccessHandler- Throws:
IOException
-