Class UserDetailsValidationProperties
OAuth2UserDetails.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()booleanComponents such asOAuth2SessionAuthenticationProviderare responsible for rejecting authentication attempts if the associated user'sUserDetails.isCredentialsNonExpired()flag (AKAUser.isChangePasswordRequired()) has a value that should prevent login.voidsetSkipCredExpCheckForThirdPartyLogin(boolean skipCredExpCheckForThirdPartyLogin) Components such asOAuth2SessionAuthenticationProviderare responsible for rejecting authentication attempts if the associated user'sUserDetails.isCredentialsNonExpired()flag (AKAUser.isChangePasswordRequired()) has a value that should prevent login.toString()
-
Constructor Details
-
UserDetailsValidationProperties
public UserDetailsValidationProperties()
-
-
Method Details
-
isSkipCredExpCheckForThirdPartyLogin
public boolean isSkipCredExpCheckForThirdPartyLogin()Components such as
OAuth2SessionAuthenticationProviderare responsible for rejecting authentication attempts if the associated user'sUserDetails.isCredentialsNonExpired()flag (AKAUser.isChangePasswordRequired()) has a value that should prevent login.However, this validation typically does not make sense if the user is logging in via a third party identity provider (3PIDP). In that case, whether their Broadleaf-managed credentials are expired or require change should not have any bearing on their ability to log in. This is especially relevant for new-user sign-ups, where a user may be created without a password and with the
User.isChangePasswordRequired()flag set - in this state, the user should still be able to log in via 3PIDP without being forced to reset/establish a Broadleaf-managed password.This property toggles whether the 'expired credentials' validation is engaged if the system detects the user has logged in via a 3PIDP. If true, credentials expiration checks are skipped when the user has signed in via 3PIDP. If false, credentials expiration checks will engage even when the user is attempting to sign in with 3PIDP.
Note - to be clear, this setting does not impact the validations that run when the user is signing in directly via BLC (first party form login, etc). The validations in
OAuth2SessionAuthenticationProviderand the first-party-loginFormLoginAuthenticationProvider(specifically the 'pre' and 'post' authentication checks flows) will continue executing as normal. -
setSkipCredExpCheckForThirdPartyLogin
public void setSkipCredExpCheckForThirdPartyLogin(boolean skipCredExpCheckForThirdPartyLogin) Components such as
OAuth2SessionAuthenticationProviderare responsible for rejecting authentication attempts if the associated user'sUserDetails.isCredentialsNonExpired()flag (AKAUser.isChangePasswordRequired()) has a value that should prevent login.However, this validation typically does not make sense if the user is logging in via a third party identity provider (3PIDP). In that case, whether their Broadleaf-managed credentials are expired or require change should not have any bearing on their ability to log in. This is especially relevant for new-user sign-ups, where a user may be created without a password and with the
User.isChangePasswordRequired()flag set - in this state, the user should still be able to log in via 3PIDP without being forced to reset/establish a Broadleaf-managed password.This property toggles whether the 'expired credentials' validation is engaged if the system detects the user has logged in via a 3PIDP. If true, credentials expiration checks are skipped when the user has signed in via 3PIDP. If false, credentials expiration checks will engage even when the user is attempting to sign in with 3PIDP.
Note - to be clear, this setting does not impact the validations that run when the user is signing in directly via BLC (first party form login, etc). The validations in
OAuth2SessionAuthenticationProviderand the first-party-loginFormLoginAuthenticationProvider(specifically the 'pre' and 'post' authentication checks flows) will continue executing as normal. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-