✨(feature) Resource server: accept tokens issued by menshen (HTTP Basic introspection)
Maintainers usually reply within 3 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- django, python
- Domain
- api, authentication
Research direction
Start in core/external_api/backends.py and the OIDC_RS_BACKEND_CLASS setting, then compare with django-lasuite's ResourceServerBackend, which sends client_id and client_secret in the introspection body. The issue leaves open whether the fix belongs here, in django-lasuite, or in menshen, so confirm with maintainers before writing code. Done means an opt-in Basic-auth introspection backend with tests, and behaviour unchanged when the setting is absent.
Written by the indexing model from the issue text.
Description
What problem do you want to fix?
Docs' resource-server API (/external_api/v1.0/) rejects tokens issued by menshen, La Suite's token-exchange server. django-lasuite's ResourceServerBackend sends client_id and client_secret in the introspection request body (client_secret_post). menshen's introspection endpoint accepts only HTTP Basic (client_secret_basic), answers 401, and every request carrying a menshen token fails with SuspiciousOperation: Could not fetch introspection.
Context: master's thesis at JMU Würzburg in collaboration with La Suite, discussed with Samuel Paccoud (DINUM). The client is a desktop agent that reads a user's own documents through the external API after exchanging the user's token at menshen.
Possible solution?
An opt-in BasicAuthResourceServerBackend in core/external_api/backends.py, selected with the existing setting OIDC_RS_BACKEND_CLASS, that sends the client credentials as HTTP Basic and only token in the body. Nothing changes unless the setting is used. I have this implemented with tests and documentation and can open it as a draft PR once you tell me it is welcome here.
Do you have an alternative?
Two other homes for the same fix: a setting for the client authentication method in django-lasuite, which would solve it for every La Suite application using its resource server, or menshen also accepting client_secret_post. Which do you prefer? I will move the change wherever you think it belongs.
Upload
No response
Contact Details
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
- Dominant language
- TypeScript
- Stars
- 17k
- Forks
- 705
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 46
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from suitenumerique/docs
-
🐛(Bug) Helm chart is published from a push to any branch, not only mainPossibly taken @RoeeSivan claimed this 1 day ago. OpenAI generated CI helm
Difficulty 1/5 Under an hour Newbie friendliness 78/100
suitenumerique/docs#3049 ·
Maintainers usually reply within 3 days
-
🐛(Bug) Preview comment missing when a PR is opened or labelled with a conflictPossibly taken @RoeeSivan claimed this 1 day ago. OpenCI preview
Difficulty 1/5 Under an hour Newbie friendliness 90/100
suitenumerique/docs#3039 ·
Maintainers usually reply within 3 days
-
🐛(Bug) Clicking a mention suggestion does nothing in comment sidebar threadsPossibly taken @RoeeSivan claimed this 1 day ago. Openeditor frontend
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
suitenumerique/docs#3034 ·
Maintainers usually reply within 3 days
-
AI generated frontend
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
suitenumerique/docs#3030 · 1 comment ·
Maintainers usually reply within 3 days
-
🐛(Bug) Block menu shows an orphan separator on blocks without colors (math, diagram)Possibly taken @arxh80 claimed this 7 days ago. Openfrontend good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
suitenumerique/docs#3021 · 1 comment · 1 assignee ·
Maintainers usually reply within 3 days
All issues in suitenumerique/docs
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
[Security]Unauthenticated WebSocket JSON.parse Without Error Handling Leads to Process TerminationOpen
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
nocobase/nocobase#11711 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Y2025: QBI forms print a negative taxable income; Form 8995-A lines 14b/14c check the wrong columnOpen
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
readest/readest#7903 · 1 comment ·
Maintainers usually reply within 1 day