diff --git a/env_secrets/local_chrigu.env b/env_secrets/local_chrigu.env index c0a93e42..736091fc 100644 Binary files a/env_secrets/local_chrigu.env and b/env_secrets/local_chrigu.env differ diff --git a/server/config/settings/base.py b/server/config/settings/base.py index dcd70113..96557976 100644 --- a/server/config/settings/base.py +++ b/server/config/settings/base.py @@ -517,7 +517,7 @@ OAUTH = { "access_token_url": env("IT_OAUTH_ACCESS_TOKEN_URL", default="https://sso.test.b.lernetz.host/auth/realms/vbv/protocol/openid-connect/token"), "authorize_url": env("IT_OAUTH_AUTHORIZE_URL", default="https://sso.test.b.lernetz.host/auth/realms/vbv/protocol/openid-connect/auth"), "api_base_url": env("IT_OAUTH_API_BASE_URL", default="https://sso.test.b.lernetz.host/auth/realms/vbv/protocol/openid-connect/"), - "local_redirect_uri": env("IT_OAUTH_LOCAL_DIRECT_URI", default="http://localhost:3000/sso/callback/"), + "local_redirect_uri": env("IT_OAUTH_LOCAL_DIRECT_URI", default="http://localhost:8000/sso/callback/"), "client_kwargs": { 'scope': '', 'token_endpoint_auth_method': 'client_secret_post', diff --git a/server/vbv_lernwelt/core/models.py b/server/vbv_lernwelt/core/models.py index 55054f86..432e0608 100644 --- a/server/vbv_lernwelt/core/models.py +++ b/server/vbv_lernwelt/core/models.py @@ -2,6 +2,8 @@ from django.contrib.auth.models import AbstractUser from django.db import models from django.db.models import JSONField +from vbv_lernwelt.core.managers import UserManager + class User(AbstractUser): """ @@ -13,6 +15,8 @@ class User(AbstractUser): avatar_url = models.CharField(max_length=254, blank=True, default='') email = models.EmailField('email address', unique=True) + objects = UserManager() + class SecurityRequestResponseLog(models.Model): label = models.CharField(max_length=255, blank=True, default="")