api-manager icon indicating copy to clipboard operation
api-manager copied to clipboard

CURL to Generate Access Token is not working when disabled "Client Credential" grant type

Open dumindurox777 opened this issue 4 years ago • 9 comments

Describe your problem(s)

Once after disabling the client-credentials grant type, the 'CURL TO GENERATE ACCESS TOKEN' button also not working(after clicking it, there are no any outcome) even the password grant type selected for the particular application.When disabling the client-credentials grant type, it is removing the 'GENERATE ACCESS TOKEN' button and adds the 'Enable Client Credentials grant type to generate test access tokens' message. Which is expected and working fine. Screen Shot 2021-06-23 at 3 42 21 PM

Describe your solution

In a scenario like, password grant enabled and client credentials grant disabled for an application, then I guess it would be good to have the CURL generation button with only the password grant details.

Suggested Labels:

APIM-4.0.0 latest update level of 4.0.0.4

dumindurox777 avatar Jun 23 '21 10:06 dumindurox777

When the password grant is enabled and the client credentials grant is disabled for an application, the CURL generation button is available.

But it includes details for both the password grant and the client credentials grant, even though the client credentials grant is disabled. (in the latest version)

NethmiRanasinghe avatar Dec 18 '24 09:12 NethmiRanasinghe

Hi @chamilaadhi I’d like to reserve this issue. I can update the CURL generation logic so that when the client-credentials grant is disabled (but password grant is enabled), the generated CURL only includes password grant details, ensuring correct behavior.

Iduranga-Uwanpriya avatar Sep 23 '25 01:09 Iduranga-Uwanpriya

Hi, I’m interested in working on this issue for Hacktoberfest. Could you confirm if it’s still available?

dhananjayaaps avatar Sep 23 '25 02:09 dhananjayaaps

@dhananjayaaps you can work on this issue.

@Iduranga-Uwanpriya Since we have already assigned you a couple of issues, we would like to give others a chance as well. Once you complete the existing issues, we will assign you a new one.

chamilaadhi avatar Sep 25 '25 09:09 chamilaadhi

Thank you @chamilaadhi I’ll start working on this and will open a PR as soon as possible.

dhananjayaaps avatar Sep 25 '25 09:09 dhananjayaaps

Hi @dhananjayaaps how is the progress of this issue?

tharikaGitHub avatar Oct 07 '25 09:10 tharikaGitHub

I am still working on this and will try to fix it as soon as possible.

dhananjayaaps avatar Oct 07 '25 10:10 dhananjayaaps

Hey @dhananjayaaps, were you able to open a PR?

pavinduLakshan avatar Oct 20 '25 04:10 pavinduLakshan

Hi @dhananjayaaps, Do you have any update on the progress of this issue?

tharikaGitHub avatar Oct 28 '25 12:10 tharikaGitHub