Forum Discussion

dannyguest's avatar
dannyguest
Occasional Visitor
2 years ago

Add additional input for the client credentials flow

I am using the Swagger for the first time and my API uses the client credentials grant type with an additional "email" field. How would I go about configuring Swagger to achieve this? I have this so far: 

 

components:
schemas: {}
securitySchemes:
application:
type: oauth2
flows:
clientCredentials:
tokenUrl: 'http://example.com/oauth/token'
scopes:
write: allows modifying resources
read: allows reading resources

 

Thanks in advance

No RepliesBe the first to reply