You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The custom grant types, namely "customgrant_user," "customgrant_user_abc," and "customgrant_user_cba" were created in the APIM. When we go to WSO2 Management Console under "Inbound Authentication Configuration" --> "OAuth/OpenID Connect Configuration"--> "Edit" action and select either the "customgrant_user_cba" or "customgrant_user_abc" grant type and save the changes, the "banking_user" grant type also gets automatically selected.
Upon investigating the database, it's apparent that only the grant type assigned to the user is visible for the Service Provider, and the "customgrant_user" grant type is not present. This leads to the assumption that the observed behavior might be a UI bug.
Add the below configuration to deployment.toml file to enable the custom grants
[[oauth.custom_grant_type]]
name="customgrant_user"
grant_handler="org.wso2.sample.identity.oauth2.grant.mobile.MobileGrant"
grant_validator="org.wso2.sample.identity.oauth2.grant.mobile.MobileGrantValidator"
[[oauth.custom_grant_type]]
name="customgrant_user_abc"
grant_handler="org.wso2.sample.identity.oauth2.grant.mobile.MobileGrant"
grant_validator="org.wso2.sample.identity.oauth2.grant.mobile.MobileGrantValidator"
[[oauth.custom_grant_type]]
name="customgrant_user_cba"
grant_handler="org.wso2.sample.identity.oauth2.grant.mobile.MobileGrant"
grant_validator="org.wso2.sample.identity.oauth2.grant.mobile.MobileGrantValidator"
Restart the server, log in to the carbon console and add a service provider
Go to "Service Provider" --> "Inbound Authentication Configuration" --> "OAuth/OpenID Connect Configuration"--> "Edit" and untick all the grant types and tick only the customgrant_user_abc --> Update
Now again Go to "Service Provider" --> "Inbound Authentication Configuration" --> "OAuth/OpenID Connect Configuration"--> "Edit" and you will observe that both customgrant_user_abc and customgrant_user grant types are checked.
Affected Component
APIM
Version
4.0.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response
The text was updated successfully, but these errors were encountered:
Description
The custom grant types, namely "customgrant_user," "customgrant_user_abc," and "customgrant_user_cba" were created in the APIM. When we go to WSO2 Management Console under "Inbound Authentication Configuration" --> "OAuth/OpenID Connect Configuration"--> "Edit" action and select either the "customgrant_user_cba" or "customgrant_user_abc" grant type and save the changes, the "banking_user" grant type also gets automatically selected.
Upon investigating the database, it's apparent that only the grant type assigned to the user is visible for the Service Provider, and the "customgrant_user" grant type is not present. This leads to the assumption that the observed behavior might be a UI bug.
Steps to Reproduce
"Service Provider" --> "Inbound Authentication Configuration" --> "OAuth/OpenID Connect Configuration"-->
"Edit" and untick all the grant types and tick only the customgrant_user_abc --> UpdateAffected Component
APIM
Version
4.0.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response
The text was updated successfully, but these errors were encountered: