Skip to content

Setting jwt_token in head does not show in cUrl #813

Open
@danilocastelhano1

Description

@danilocastelhano1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions