Why isn't the OpenAPI "Application" Grant working in SmartDocs?

Not applicable

I have imported my OpenAPI Document into SmartDocs, and I am using an "Application" (aka Client Credentials) grant. Here is the specification snippet:

schemes:
  - https
  - http
  
securityDefinitions:
  OauthSecurity:
    type: oauth2
    flow: application
    tokenUrl: 'https://tmobileh-sb04.apigee.net/v1/CSL/oauth2/token'

security:
  - OauthSecurity: [] 

Everything imports fine (as YAML), and publishes, no issues. Except, there is no dialogue like the Swagger Editor to obtain the Access token.

When I went into the security setting for the model, it was complaining that there was no "Authorization URL" -- which is not correct, because this is a different grant type.

Is this a bug? Is there a work around?

0 1 45
1 REPLY 1

@john.l.dohoney , Great Question,

I don't think out of the box Smartdocs module has support for "Client Credentials" which is "flow:application" grant type.

But, there is a module which supports same & contributed to open source community. Take a look at this custom module smartdocs_oauth_additions which should solve your use case. Thank you @Gitesh Koli for the module.

Keep us posted if any.