Skip to content

🚧(resource-server) Allow documents API via RS #927

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

qbey
Copy link
Member

@qbey qbey commented May 2, 2025

Purpose

This provides a base configuration to allow to access all "/documents" API via OIDC resource server authentication.

Capture.video.du.2025-05-02.17-09-35.mp4

Proposal

qbey added 3 commits May 13, 2025 23:42
This provides a base configuration to allow to access all "/documents"
API via OIDC resource server authentication.
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.
The previous `ServerToServerAuthentication` was raising authentication
failed error if anything is wrong (the header, the token) which prevents
any possibility to have several authentication backends.
@qbey qbey force-pushed the qbey/add-resource-server-mode branch from c685a45 to 31d51be Compare May 13, 2025 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant