Skip to content
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

Setting jwt_token in head does not show in cUrl #813

Open
danilocastelhano1 opened this issue Mar 16, 2022 · 0 comments
Open

Setting jwt_token in head does not show in cUrl #813

danilocastelhano1 opened this issue Mar 16, 2022 · 0 comments
Labels

Comments

@danilocastelhano1
Copy link

Hi guys i'm using the decorator @jwt_token() in my namespace therefore when i authenticate in the swagger the header does not shown in cUrl, and my response is 401,
i'm setting in Api() the authentication but the header is not sent

swagger = Api(
    title='Ágil Web Documentação',
    version='',
    description='Api de Testes',
    prefix='',
    doc='/docs',
    security='apiKey',
    authorizations={
        'apikey': {
            'type': 'apiKey',
            'in': 'header',
            'name': 'Authorization',
            'description': "Type in the *'Value'* input box below: **'Bearer <JWT>'**, where JWT is the token"
        }
    },
)
client_ns = Namespace('clients', description=Test', path='/',
                        decorators=[jwt_required()])

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant