Skip to content

Commit

Permalink
Make JWT the first auth class and default
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
chrismeyersfsu committed Feb 27, 2024
1 parent 237adc6 commit b3466d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions awx/settings/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@
'awx.sso',
'solo',
'ansible_base.rest_filters',
'ansible_base.jwt_consumer',
]

INTERNAL_IPS = ('127.0.0.1',)
Expand All @@ -362,6 +363,7 @@
'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',
Expand Down

0 comments on commit b3466d4

Please sign in to comment.