mozilla / mozilla-django-oidc

A django OpenID Connect library

Home Page:https://mozilla-django-oidc.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'bytes' object has no attribute 'verify'

michaelschem opened this issue · comments

I believe I've got everything setup correctly, but I get the error:

AttributeError at /oidc/callback/
'bytes' object has no attribute 'verify'

Configurations:

AUTHENTICATION_BACKENDS = (
    'mozilla_django_oidc.auth.OIDCAuthenticationBackend',
    # ...
)

OIDC_RP_IDP_SIGN_KEY = "https://[REDACTED].okta.com/oauth2/v1/keys"
OIDC_RP_CLIENT_ID = "[REDACTED]"
OIDC_RP_CLIENT_SECRET = "[REDACTED]"
OIDC_OP_AUTHORIZATION_ENDPOINT = "https://[REDACTED].okta.com/oauth2/v1/authorize"
OIDC_OP_TOKEN_ENDPOINT = "https://[REDACTED].okta.com/oauth2/v1/token"
OIDC_OP_USER_ENDPOINT = "https://[REDACTED].okta.com/oauth2/v1/userinfo"
OIDC_RP_SIGN_ALGO = "RS256"