From bba081156b86f8f215ba0bc48415f5b495a709b6 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Sun, 20 Apr 2025 11:10:05 +0200 Subject: [PATCH] create package server.auth with module oidc (former server.auth module) --- scopes/server/app.py | 2 +- scopes/server/auth/__init__.py | 1 + scopes/server/{auth.py => auth/oidc.py} | 0 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 scopes/server/auth/__init__.py rename scopes/server/{auth.py => auth/oidc.py} (100%) diff --git a/scopes/server/app.py b/scopes/server/app.py index 44f27f2..10fb150 100644 --- a/scopes/server/app.py +++ b/scopes/server/app.py @@ -38,7 +38,7 @@ class Publication(DefaultPublication): def beforeTraversal(self, request): super(Publication, self).beforeTraversal(request) - from scopes.server.auth import authentication + from scopes.server.auth.oidc import authentication prc = authentication.authenticate(request) request.setPrincipal(prc) diff --git a/scopes/server/auth/__init__.py b/scopes/server/auth/__init__.py new file mode 100644 index 0000000..3f33999 --- /dev/null +++ b/scopes/server/auth/__init__.py @@ -0,0 +1 @@ +"""package scopes.server.auth""" diff --git a/scopes/server/auth.py b/scopes/server/auth/oidc.py similarity index 100% rename from scopes/server/auth.py rename to scopes/server/auth/oidc.py