New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go swagger security auth0 #2403
Comments
@prasenjitChowdhury security:
auth0: [] @prasenjitChowdhury I've been confused in the above. Let's take it from the beginning again. We have the security definitions object, defined by the We have the security requirements array, defined either a the spec level or at the operation level. Each element in this array holds a single key referring to a named security scheme. The value attached to that key is an array. |
Just tried this , doesn't solve the issue . Producing the same issue |
We might need a more complete excerpt of your annotated code to better understand your issue. Please see below the working examples provided. I've tested this code again and it works with the
|
With security requirements at the spec level (swagger:meta), this works:
Produces: {
"api_key": {
"type": "apiKey",
"name": "KEY",
"in": "header",
"authorizationUrl": ""
},
"oauth2": {
"type": "oauth2",
"in": "header",
"flow": "accessCode",
"authorizationUrl": "/oauth2/auth",
"tokenUrl": "/oauth2/token",
"scopes": {
"bla1": "foo1",
"bla2": "foo2"
}
}
} And: [
{
"api_key": []
},
{
"oauth2": [
"bla1",
"bla2"
]
}
] |
I am trying to achieve this : which is applicable for all my api request
But when I put in my go file and generate the swagger , this is what I get
Could you please help .
The text was updated successfully, but these errors were encountered: