Skip to content

Commit

Permalink
Add new authenticator property: authenticationType.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thisara-Welmilla committed Oct 2, 2024
1 parent 86e184d commit d53759a
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ components:
enum:
- SYSTEM
- USER
AuthenticationType:
type: string
enum:
- AUTHENTICATION
- VERIFICATION
type:
type: string
enum:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,11 @@ components:
enum:
- SYSTEM
- USER
AuthenticationType:
type: string
enum:
- AUTHENTICATION
- VERIFICATION
type:
type: string
enum:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,7 @@ private void updateFederatedAuthenticatorConfig(IdentityProvider idp, FederatedA
} else {
authConfig.setDefinedByType(IdentityConstants.DefinedByType.USER);
}
authConfig.setAuthenticationType(IdentityConstants.AuthenticationType.EXTERNAL_ACCOUNT);
List<org.wso2.carbon.identity.api.server.idp.v1.model.Property> authProperties =
authenticator.getProperties();
if (IdentityApplicationConstants.Authenticator.SAML2SSO.FED_AUTH_NAME.equals(authConfig.getName())) {
Expand Down Expand Up @@ -2857,6 +2858,7 @@ private FederatedAuthenticatorConfig createFederatedAuthenticatorConfig(String f
} else {
authConfig.setDefinedByType(IdentityConstants.DefinedByType.USER);
}
authConfig.setAuthenticationType(IdentityConstants.AuthenticationType.EXTERNAL_ACCOUNT);
List<org.wso2.carbon.identity.api.server.idp.v1.model.Property> authProperties = authenticator.getProperties();
if (IdentityApplicationConstants.Authenticator.SAML2SSO.FED_AUTH_NAME.equals(authenticatorName)) {
validateSamlMetadata(authProperties);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2788,6 +2788,11 @@ components:
enum:
- SYSTEM
- USER
AuthenticationType:
type: string
enum:
- AUTHENTICATION
- VERIFICATION
tags:
type: array
items:
Expand All @@ -2814,6 +2819,11 @@ components:
enum:
- SYSTEM
- USER
AuthenticationType:
type: string
enum:
- AUTHENTICATION
- VERIFICATION
tags:
type: array
items:
Expand Down Expand Up @@ -2864,6 +2874,11 @@ components:
enum:
- SYSTEM
- USER
AuthenticationType:
type: string
enum:
- AUTHENTICATION
- VERIFICATION
isDefault:
type: boolean
default: false
Expand Down Expand Up @@ -2928,6 +2943,11 @@ components:
enum:
- SYSTEM
- USER
AuthenticationType:
type: string
enum:
- AUTHENTICATION
- VERIFICATION
tags:
type: array
items:
Expand Down

0 comments on commit d53759a

Please sign in to comment.