Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'djangooidc'. openid/login Page not found #3

Open
dabocs opened this issue Sep 7, 2022 · 1 comment

Comments

@dabocs
Copy link

dabocs commented Sep 7, 2022

I was getting the error ModuleNotFoundError: No module named 'djangooidc' because of the line path('openid/', include('djangooidc.urls')), at the file urls.py
Then I changed it to be path('openid/', include('mozilla_django_oidc.urls')) then I got a new error openid/login Page not found when opening the login page, what am I missing here?

I only changed the values for:
auth_uri = "https://auth.theboss.io/auth/realms/BOSS"
client_id = ""
public_uri = "http://localhost:8000"

I am using generic Django setup based on the article but using boss-oidc2

With the following versions:
Django 4.1.1
Python 3.9.13
Keycloak 18.0.2

@movestill
Copy link
Member

You did the right thing substituting mozilla_django_oidc.urls. I missed updating that in the README.md. auth_uri should point to your Keycloak server which serves the login page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants