swagger icon indicating copy to clipboard operation
swagger copied to clipboard

Authorization button

Open ianrapha opened this issue 8 years ago • 3 comments

Hi @astaxie

The authorization button is not present in the screen. Is there any special config on Beego to enable it? The button exists in http://petstore.swagger.io/

Thanks for the attention and for the awesome job.

ianrapha avatar Dec 08 '16 22:12 ianrapha

@ianrapha yea, beego doesn't implement the auth now.

petstore has these definition.

"securityDefinitions": {
  "petstore_auth": {
    "type": "oauth2",
    "authorizationUrl": "http://petstore.swagger.io/oauth/dialog",
    "flow": "implicit",
    "scopes": {
      "write:pets": "modify pets in your account",
      "read:pets": "read your pets"
    }
  },
  "api_key": {
    "type": "apiKey",
    "name": "api_key",
    "in": "header"
  }
},

astaxie avatar Dec 16 '16 18:12 astaxie

@astaxie @ianrapha Full support for this now if this PR goes through: https://github.com/beego/bee/pull/436 Feel free to use the code if it doesn't get merged.

franzwilhelm avatar May 13 '17 23:05 franzwilhelm

Is there any plan to support this?

daoleno avatar May 20 '18 09:05 daoleno