Django, mozilla-django-oidc and admin

后端 未结 2 1734
感动是毒
感动是毒 2021-01-07 11:28

i am trying to connect Okta with a custom Django (v.3.0.2) app i am coding, using the mozilla-django-oidc library. So far the initial user authentication and account creatio

2条回答
  •  误落风尘
    2021-01-07 12:10

    The goal was achieved by adding the default auth backend to the settings:

    settings.py

    AUTHENTICATION_BACKENDS = [
        'django.contrib.auth.backends.ModelBackend',
        'mozilla_django_oidc.auth.OIDCAuthenticationBackend',
    ]
    

    I don't get Okta auth for the admin, but since i am happy just to have the admin running, i will stop here.

提交回复
热议问题