Hi
I am facing an issue configuring oAuth for my contract . I have client_id , client_secret and token url to obtain the OAuth token , This oAuth token along with an api key is used to hit the API . I configured it like
OAuth2:
type: oauth2
flow: application
tokenUrl: https://testOrg/testAAD/oauth2/token
scopes:
read: Grants read access
When I click "Authorize" button client_id and client_secret is visible and input it , I am not able to understand that the token obtained would be appended to header of the API request.
I am using swagger 2.0
Thanks
Shweta
Hi @shwetashukla I am trying to get the access token using the "authorize" button. But I could not find the correct configuration required for "client credential" grant.
Could you please share how to modify the SwaggerConfig to achieve this?
Most helpful comment
Hi @shwetashukla I am trying to get the access token using the "authorize" button. But I could not find the correct configuration required for "client credential" grant.
Could you please share how to modify the SwaggerConfig to achieve this?