Configuration.host is really a URL not a host
まだ誰も着手していません。
評価
調査の方向性
このレポートでは AdminApi->admin_apps_list を使う Configuration が使用されていますが、ソースファイルもテストも示されていません。値が URL である host を使って例を再現し、Configuration がリクエスト URL をどのように構築するかを追跡して、エンドポイントが HTML 404 を返すのではなく意図したリクエストを受け取ることを確認してください。報告された URL 形式に定義済みで動作する挙動があれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I passed host = 'https://domain.of.my.instance' to the Configuration object and all I got was a lousy HTML (t-shirt material right there).
import os
import sys
import authentik_client
def main():
host = os.environ.get("AUTHENTIK_HOST")
token = os.environ.get("AUTHENTIK_TOKEN")
if not token:
print("AUTHENTIK_TOKEN unset")
sys.exit(1)
if not host:
print("AUTHENTIK_HOST unset")
sys.exit(1)
configuration = authentik_client.Configuration(
host=host,
access_token=token
)
with authentik_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = authentik_client.AdminApi(api_client)
try:
api_response = api_instance.admin_apps_list()
print("The response of AdminApi->admin_apps_list:\n")
print(api_response)
except authentik_client.ApiException as e:
print("Exception when calling AdminApi->admin_apps_list: %s\n" % e)
if __name__ == "__main__":
main()
When invoking it I got:
python move-okta-app-to-authentik.py
Exception when calling AdminApi->admin_apps_list: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'date': 'Thu, 30 Oct 2025 20:43:11 GMT', 'content-type': 'text/html; charset=utf-8', 'content-length': '6743', 'referrer-policy': 'same-origin', 'vary': 'Accept-Encoding, Cookie', 'x-authentik-id': 'eb6d60959c6042fbb4fd3c60bfdc5284', 'x-content-type-options': 'nosniff', 'x-frame-options': 'DENY', 'x-powered-by': 'authentik', 'strict-transport-security': 'max-age=31536000; includeSubDomains'})
HTTP response body:
<long body here>
- 主要言語
- Mustache
- スター
- 2
- フォーク
- 1
- 平均マージ
- 15時間 5分
- マージ済み PR(30日)
- 2
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
goauthentik/client-python のほかの issue
-
Data returned from the API on StagesApi().stages_invitation_invitations_create() fails validation オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
goauthentik/client-python#18 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
goauthentik/client-python#11 · コメント 2 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
goauthentik/client-python#10 ·
goauthentik/client-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mksglu/context-mode#1200 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr impact:auth-provider issue-rating: 🌊 off-meta tidepool P2
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100