django-rest-swagger icon indicating copy to clipboard operation
django-rest-swagger copied to clipboard

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

Open sang-d opened this issue 6 years ago • 12 comments

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"
        },
    },
}

sang-d avatar Jun 15 '18 06:06 sang-d

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

TheMightyGit avatar Jun 15 '18 09:06 TheMightyGit

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

cegprakash avatar Jun 26 '18 10:06 cegprakash

Same issue. Seems that 2.2.0 broke it

kevinhofmaenner avatar Jul 24 '18 20:07 kevinhofmaenner

@marcgibbons I think it has something to do with this issue https://github.com/swagger-api/swagger-ui/issues/2915. What do you think ?

cedriccarrard avatar Sep 03 '18 11:09 cedriccarrard

Hi. Still same here. Any updates?

varadhodiyil avatar Feb 03 '19 15:02 varadhodiyil

Same here

ipasic avatar Feb 05 '19 12:02 ipasic

bump

vaniakov avatar May 03 '19 15:05 vaniakov

Same here.......

Doskulov avatar May 06 '19 12:05 Doskulov

Also the same issue on v2.2.0!

david-dv avatar Jun 20 '19 12:06 david-dv

Is anyone looking into the issue?

ihd2911 avatar Jul 12 '19 08:07 ihd2911

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

ghost avatar Jul 30 '19 21:07 ghost

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

crazy-coding avatar Sep 25 '20 09:09 crazy-coding