✨(feature) Resource server: accept tokens issued by menshen (HTTP Basic introspection)
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- django, python
- 領域
- api, authentication
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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 @sampaccoud . 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
- 主要言語
- TypeScript
- スター
- 17k
- フォーク
- 705
- 平均マージ
- 4日 13時間
- マージ済み PR(30日)
- 47
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
suitenumerique/docs のほかの issue
-
🐛(Bug) Helm chart is published from a push to any branch, not only main対応中かも @RoeeSivan が 1 日前に担当しました。 オープンAI generated CI helm
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
suitenumerique/docs#3049 ·
メンテナーはふだん 3 日以内に返信
-
🐛(Bug) Preview comment missing when a PR is opened or labelled with a conflict対応中かも @RoeeSivan が 1 日前に担当しました。 オープンCI preview
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
suitenumerique/docs#3039 ·
メンテナーはふだん 3 日以内に返信
-
AI generated frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
suitenumerique/docs#3030 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
🐛(Bug) Block menu shows an orphan separator on blocks without colors (math, diagram)対応中かも @arxh80 が 8 日前に担当しました。 オープンfrontend good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
suitenumerique/docs#3021 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
suitenumerique/docs#3018 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
suitenumerique/docs の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
siyuan-note/siyuan#21692 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
GetStream/stream-chat-react#3467 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
resend/resend-node#1206 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
cloudflare/cloudflare-typescript#2821 ·