Openapi-specification: Get OAuth token by providing client credentials

Created on 6 Feb 2019  路  1Comment  路  Source: OAI/OpenAPI-Specification

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

review

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?

>All comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rossi-jeff picture rossi-jeff  路  5Comments

ePaul picture ePaul  路  5Comments

slinkydeveloper picture slinkydeveloper  路  4Comments

howshit picture howshit  路  4Comments

Prasanthmv picture Prasanthmv  路  4Comments