Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiple email addresses and verified email addresses per user support #822

Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ public class IdentityRecoveryConstants {
public static final String USER_ROLES_CLAIM = "http://wso2.org/claims/roles";
public static final String EMAIL_ADDRESS_CLAIM = "http://wso2.org/claims/emailaddress";
public static final String MOBILE_NUMBER_CLAIM = "http://wso2.org/claims/mobile";
public static final String EMAIL_ADDRESSES_CLAIM = "http://wso2.org/claims/emailAddresses";
public static final String VERIFIED_EMAIL_ADDRESSES_CLAIM = "http://wso2.org/claims/verifiedEmailAddresses";
public static final String DEFAULT_CHALLENGE_QUESTION_SEPARATOR = "!";
public static final String ACCOUNT_STATE_CLAIM_URI = "http://wso2.org/claims/identity/accountState";
public static final String PENDING_SELF_REGISTRATION = "PENDING_SR";
Expand Down Expand Up @@ -210,6 +212,9 @@ public class IdentityRecoveryConstants {
public static final String ACCOUNT_STATUS_DISABLED = "password.recovery.failed.account.disabled";
public static final String IGNORE_IF_TEMPLATE_NOT_FOUND = "ignoreIfTemplateNotFound";

public static final String SUPPORT_MULTIPLE_EMAILS_AND_MOBILE_NUMBERS_PER_USER =
"SupportMultipleEmailsAndMobileNumberPerUser.Enabled";

private IdentityRecoveryConstants() {

}
Expand Down Expand Up @@ -440,9 +445,16 @@ public enum ErrorMessages {

// UEV - User Email Verification.
ERROR_CODE_VERIFICATION_EMAIL_NOT_FOUND("UEV-10001", "Email address not found for email verification"),
ERROR_CODE_EMAIL_VERIFICATION_NOT_ENABLED("UEV-10002", "Email verification is not enabled"),
ERROR_CODE_VERIFY_MULTIPLE_EMAILS("UEV-10003", "Unable to verify multiple email addresses " +
"simultaneously"),
ERROR_CODE_SUPPORT_MULTIPLE_EMAILS_NOT_ENABLED("UEV-10004", "Support for multiple email addresses " +
"per user is not enabled"),
ERROR_CODE_CANNOT_INITIATE_VERIFICATION_FOR_EMAIL_ADDRESS("UEV-10005", "Cannot initiate verification for email" +
" address claim as support for multiple email addresses per user is enabled."),

INVALID_PASSWORD_RECOVERY_REQUEST("APR-10000", "Invalid Password Recovery Request"),

INVALID_PASSWORD_RECOVERY_REQUEST("APR-10000", "Invalid Password Recovery Request")
,
// Idle User Account Identification related Error messages.
ERROR_RETRIEVING_ASSOCIATED_USER("UMM-65005",
"Error retrieving the associated user for the user: %s in the tenant %s.");
Expand Down Expand Up @@ -858,7 +870,12 @@ public enum SkipEmailVerificationOnUpdateStates {
/* State maintained to skip triggering an email verification, when the email address was updated by user during
the Email OTP flow at the first login where the email address is not previously set. At the moment email
address was already verified during the email OTP verification. So no need to verify it again. */
SKIP_ON_EMAIL_OTP_FLOW
SKIP_ON_EMAIL_OTP_FLOW,

/* State maintained to skip triggering an SMS OTP verification, when the email address to be updated is included
in the verifiedEmailAddresses claim, which has been already verified.
*/
SKIP_ON_ALREADY_VERIFIED_EMAIL_ADDRESSES
}

/**
Expand Down
Loading
Loading