-
Notifications
You must be signed in to change notification settings - Fork 145
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 definedBy property for authenticator #679
Add definedBy property for authenticator #679
Conversation
4996186
to
876ab14
Compare
876ab14
to
d356fae
Compare
...rc/main/java/org/wso2/carbon/identity/api/server/idp/v1/core/ServerIdpManagementService.java
Outdated
Show resolved
Hide resolved
afdfbae
to
df556be
Compare
df556be
to
bcfc49e
Compare
@@ -421,6 +422,14 @@ private void addIdp(IdentityProvider identityProvider, List<Authenticator> authe | |||
authenticator.setType(Authenticator.TypeEnum.FEDERATED); | |||
authenticator.setImage(identityProvider.getImageUrl()); | |||
authenticator.setDescription(identityProvider.getIdentityProviderDescription()); | |||
// Only older existing IDP has multiple federated authenticator, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's improve the comment here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed with commit fb2b665
@@ -2838,6 +2842,7 @@ private FederatedAuthenticatorConfig createFederatedAuthenticatorConfig(String f | |||
authConfig.setName(authenticatorName); | |||
authConfig.setDisplayName(getDisplayNameOfAuthenticator(authenticatorName)); | |||
authConfig.setEnabled(authenticator.getIsEnabled()); | |||
authConfig.setDefinedByType(resolveDefinedByType(authenticatorName)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, we cannot rely just on the fact whether this authenticator is system or not user by comparing authenticator name.
From the API it should denote that this is a user defined authenticator.
Then server should accept it's name, identifier etc.
If API doesn't say so it should be considered as system. And the authenticator name should be validated against the set of system defined authenticators
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed with commit fb2b665
9376a08
to
fb2b665
Compare
fb2b665
to
6883465
Compare
The base branch was changed.
PR builder started |
PR builder completed |
PR builder started |
PR builder started |
PR builder completed |
PR builder completed |
PR builder started |
PR builder completed |
PR builder started |
PR builder completed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/11408339798
Issue:
Related PRs:
With wso2/carbon-identity-framework#5938 PR, we have introduced following new property for authentication configs.
DefinedBy
- to indicate whether the authenticator is system-defined or user-defined.With this PR following changes are added.