-
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 tags in the idp authenticator responses. #758
base: master
Are you sure you want to change the base?
Add tags in the idp authenticator responses. #758
Conversation
ecb1b0c
to
97fc457
Compare
97fc457
to
e2c0b71
Compare
e2c0b71
to
5fe52b8
Compare
* FederatedAuthenticatorConfig. | ||
* | ||
* @param fedAuthConfigs Array of FederatedAuthenticatorConfig instances. | ||
* @return List of FederatedAuthenticatorListItem instances. |
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.
Missing idpResourceId param
*/ | ||
if (DefinedByType.USER == config.getDefinedByType()) { | ||
return config.getTags(); | ||
|
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.
Remove this extra line
if (federatedAuthenticatorConfig != null) { | ||
return federatedAuthenticatorConfig.getTags(); | ||
} | ||
return new String[0]; |
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.
return ApplicationAuthenticatorService.getInstance()
.getFederatedAuthenticatorByName(config.getName())
.map(FederatedAuthenticatorConfig::getTags)
.orElse(new String[0]);
@@ -435,6 +466,23 @@ private static void resolveEndpointConfiguration(FederatedAuthenticator authenti | |||
} | |||
} | |||
|
|||
private static String[] resolveAuthenticatorTags(FederatedAuthenticatorConfig config) { |
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.
Is there a requirement to return the tags as an array ? Can't we return a List ?
Issue:
tags
Property in the API Response of User-Defined Federated Authenticators product-is#21998Following changes are added with this PR:
FederatedAuthenticatorConfigBuilderFactory
class to build list ofFederatedAuthenticatorListItem
where authenticators will be list with basic info.Integration tests: wso2/product-is#22002