Skip to content

Commit

Permalink
Update example settings for openid
Browse files Browse the repository at this point in the history
  • Loading branch information
timonegk committed Feb 5, 2024
1 parent 797dca3 commit 679eb28
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions karma/settings.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ DEBUG = True

ALLOWED_HOSTS = []

LOGIN_URL = "/#/"
LOGIN_REDIRECT_URL = "/karma/"
LOGIN_URL = "simple_openid_connect_django:login"
LOGOUT_REDIRECT_URL = "/"

# Application definition
Expand All @@ -46,6 +45,7 @@ INSTALLED_APPS = [
'karma.base',
'karma.api',
'karma.calibration',
'simple_openid_connect.integrations.django',
]

MIDDLEWARE = [
Expand Down Expand Up @@ -133,3 +133,10 @@ ITEMS_PER_PAGE = 100
CALIBRATION_PROJECT = 1

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

OPENID_ISSUER = "https://identity.mafiasi.de/realms/mafiasi"
OPENID_CLIENT_ID = "karma"
OPENID_BASE_URI = "https://karma.bit-bots.de"
OPENID_CLIENT_SECRET = "..."
OPENID_SCOPE = ["openid", "profile"]
OPENID_USER_MAPPER = "karma.karma.openid:KarmaUserMapper"

0 comments on commit 679eb28

Please # to comment.