Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Django-rest-swagger 2.2.0 doesn't include token in header #759

Open
sang-d opened this issue Jun 15, 2018 · 12 comments
Open

Django-rest-swagger 2.2.0 doesn't include token in header #759

sang-d opened this issue Jun 15, 2018 · 12 comments

Comments

@sang-d
Copy link

sang-d commented Jun 15, 2018

Hi, I'am trying this config, and it's working for 2.1.2 but not 2.2.0. The header just not includes the token. Please have a look.

SWAGGER_SETTINGS = {
    'LOGIN_URL': 'rest_framework:login',
    'LOGOUT_URL': 'rest_framework:logout',
    'USE_SESSION_AUTH': False,
    'DOC_EXPANSION': 'list',
    'APIS_SORTER': 'alpha',
    'JSON_EDITOR': True, 
    'api_version': '0.1',
    'SUPPORTED_SUBMIT_METHODS': [
        'get',
        'post',
    ],
    'SECURITY_DEFINITIONS': {
        "api_key": {
            "type": "apiKey",
            "name": "Authorization",
            "in": "header",
            "description": "JWT authorization"
        },
    },
}
@TheMightyGit
Copy link

I have the same issue. Works in 2.1.2 but not in 2.2.0 (no header is sent).

1 similar comment
@cegprakash
Copy link

I have the same issue. Works in 2.1.2 but not in 2.2.0 (no header is sent).

@kevinhofmaenner
Copy link

kevinhofmaenner commented Jul 24, 2018

Same issue. Seems that 2.2.0 broke it

@cedriccarrard
Copy link

@marcgibbons I think it has something to do with this issue swagger-api/swagger-ui#2915. What do you think ?

@varadhodiyil
Copy link

Hi. Still same here. Any updates?

@ipasic
Copy link

ipasic commented Feb 5, 2019

Same here

@vaniakov
Copy link

vaniakov commented May 3, 2019

bump

@Doskulov
Copy link

Doskulov commented May 6, 2019

Same here.......

@david-dv
Copy link

Also the same issue on v2.2.0!

@ihd2911
Copy link

ihd2911 commented Jul 12, 2019

Is anyone looking into the issue?

@ghost
Copy link

ghost commented Jul 30, 2019

Same problem here. It would be really useful if this issue was solved!

@crazy-coding
Copy link

crazy-coding commented Sep 25, 2020

This projects is going on? this will be good with fixing only 2 issues for staticfiles and authtoken header.

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

No branches or pull requests