mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-15 11:36:23 +01:00
13 lines
434 B
Python
13 lines
434 B
Python
from django.conf import settings
|
|
from django.core.checks import Error
|
|
|
|
|
|
def check_login_scopes_setting(*args, **kwargs):
|
|
errors = []
|
|
try:
|
|
assert settings.LOGIN_TOKEN_SCOPES
|
|
except (AssertionError, AttributeError):
|
|
errors.append(Error('LOGIN_TOKEN_SCOPES setting cannot be blank.',
|
|
hint='SSO tokens used for logging in must require scopes to be refreshable.'))
|
|
return errors
|