Closed JordiNeil closed 2 years ago
I think I solved it, I just had to move the CustomScopeClaims class to the oidc_provider.lib.claims file and update the constant in the Django settings file
OIDC_EXTRA_SCOPE_CLAIMS = 'yourproject.oidc_provider_settings.CustomScopeClaims'
to
OIDC_EXTRA_SCOPE_CLAIMS = 'yourproject.oidc_provider.lib.claims.CustomScopeClaims'
I this should be in the doc @juanifioren If you create customScopes in the location the Documentation says, the Tests will fail due to circular dependency error.
I created a CustomScopeClaims just as in documentation but the test_claims test fails with error
And make sense because settings.py imports ScopeClaims
and ScopeClaims imports settings
In ScopeClaims class, settings is just being used to get the OIDC_USERINFO constant.
Can anyone help me? Which is the best way to solve this.