You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm using a custom JWT authentication sent in a cookie. When I authorize using the green button in the swagger-generated API, the authorization token is sent in the header, not in the cookie.
To Reproduce
class JWTCookieAuthenticationScheme(OpenApiAuthenticationExtension):
name = "JWTCookieAuthenticationScheme"
target_class = JWTCookieAuthentication
def get_security_definition(self, auto_schema):
return {
'type': 'apiKey',
'in': 'cookie',
'name': 'jwt',
}
Expected behavior
The authorization data is sent in the cookie.
At the moment, the generated CURL command is the following:
I see. There is nothing wrong with your extensions. As a matter of fact we use exactly that notation multiple times. You could call that an upstream issue I suppose.
What SwaggerUI decides to do with it is outside of your reach and scope. We have no control over how they generate that curl snippet. You may have to file an issue at SwaggerUI.
Describe the bug
I'm using a custom JWT authentication sent in a cookie. When I authorize using the green button in the swagger-generated API, the authorization token is sent in the header, not in the cookie.
To Reproduce
Expected behavior
The authorization data is sent in the cookie.
At the moment, the generated CURL command is the following:
I'd rather expect something like this:
Is it a bug or I'm doing something wrong? Thanks in advance!
The text was updated successfully, but these errors were encountered: