Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prompt client id and client secret in swagger

How to allow user to input client id and client secret in swagger? This is what i have for security definition but It prompts accesstoken which is obtained through client_id and client secret, but I have not been able to make it ask client id and client secret?

securityDefinitions:
  api_auth :
  type: oauth2
  authorizationUrl: 'https://randomapi/aa/token.oauth2'
  flow: implicit
  scopes:
like image 256
paris_serviola Avatar asked Nov 19 '22 07:11

paris_serviola


1 Answers

I also had the same issue. What worked for me was to define flow as application :

flow: application
like image 164
Tom Shen Avatar answered Nov 21 '22 19:11

Tom Shen