mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
Make JWT the first auth class and default
* No harm in adding it to the list. If a JWT auth header is provided, then process it (valid or not). If a JWT is not provided, move on to the next auth.
This commit is contained in:
parent
237adc6150
commit
b3466d4449
@ -353,6 +353,7 @@ INSTALLED_APPS = [
|
||||
'awx.sso',
|
||||
'solo',
|
||||
'ansible_base.rest_filters',
|
||||
'ansible_base.jwt_consumer',
|
||||
]
|
||||
|
||||
INTERNAL_IPS = ('127.0.0.1',)
|
||||
@ -362,6 +363,7 @@ REST_FRAMEWORK = {
|
||||
'DEFAULT_PAGINATION_CLASS': 'awx.api.pagination.Pagination',
|
||||
'PAGE_SIZE': 25,
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': (
|
||||
'ansible_base.jwt_consumer.awx.auth.AwxJWTAuthentication',
|
||||
'awx.api.authentication.LoggedOAuth2Authentication',
|
||||
'awx.api.authentication.SessionAuthentication',
|
||||
'awx.api.authentication.LoggedBasicAuthentication',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user