Forum Discussion

RachelP's avatar
Occasional Visitor
3 years ago

Add Client Credentials location to clientCredentials auth flow

I am using `application` (`clientCredentials`) auth flow as follows:

    type: oauth2
    flow: application
    scopes: default scope

The problem is that AAD requires that the client id and client secret are in the request body, and Swagger places the credentials in the request header. There is no way to select "Request Body" option when using Client Credentials:

When using `password` flow, for example, you do have the option to choose how Client Credentials should be passed:


I need to use `application`/`clientCredentials` flow and sent the credentials in the request body. Are there any known workarounds or could a fix be considered?



No RepliesBe the first to reply