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

[APIM-4.0.0] carbon UI shows wrong grant types for Service Provider #2094

Closed
cbabey opened this issue Aug 14, 2023 · 1 comment
Closed

[APIM-4.0.0] carbon UI shows wrong grant types for Service Provider #2094

cbabey opened this issue Aug 14, 2023 · 1 comment

Comments

@cbabey
Copy link

cbabey commented Aug 14, 2023

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

  1. Add the custom grant handler to /lib folder custom-grant.zip
  2. 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
  1. 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
  2. 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

@Kirishikesan
Copy link

Hi team,

Closing this as the public pr has been merged.
PR : wso2-extensions/identity-inbound-auth-oauth#2136

Thanks & Regards,
Kirishikesan

@GihanAyesh GihanAyesh added 4.3.0 4.3.0-M1 4.3.0 M1 Milestone labels Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants