Skip to content

Commit 30e7dd0

Browse files
committed
🔒️(oidc) disable OIDC authentication on API
Our authentication flow uses the Django authentication which creates a session for the User. Then the session is used to make API calls, therefore we don't need to accept OIDC tokens directly on the API. Accepting the OIDC token on the API can allow to bypass the "resource server mode" which allows to restrict provided information according to the Service Provider which makes the request.
1 parent cae2aab commit 30e7dd0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/backend/impress/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,6 @@ class Base(Configuration):
327327

328328
REST_FRAMEWORK = {
329329
"DEFAULT_AUTHENTICATION_CLASSES": (
330-
"mozilla_django_oidc.contrib.drf.OIDCAuthentication",
331330
"rest_framework.authentication.SessionAuthentication",
332331
),
333332
"DEFAULT_PARSER_CLASSES": [

0 commit comments

Comments
 (0)