authlib / authlib/example-oauth2-server

unauthorized_client

オープン
#85 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
705
フォーク
279
PR マージ指標
30日以内にマージされた PR はありません

説明

I have an issue with the example on this page:
https://github.com/authlib/example-oauth2-server

curl -u zdIKyq4ngefIcRtcU83mYK4x:oBxXfYNeqGtBq07UHrmMXLfonxTimxoJ0qpIhV9lQWYtN82Z -XPOST http://127.0.0.1:5000/oauth/token -F grant_type=password -F username=test1 -F password=valid -F scope=profile

Response: {"error": "unauthorized_client"}
There is not enough debug to let me know what the issue is. The username is test1, correct.

From http://127.0.0.1:5000/
(copied from HTML)

Logged in as test1 (Log Out)
Client Info
client_id: zdIKyq4ngefIcRtcU83mYK4x
client_secret: oBxXfYNeqGtBq07UHrmMXLfonxTimxoJ0qpIhV9lQWYtN82Z
client_id_issued_at: 1637592243
client_secret_expires_at: 0
Client Metadata
client_name: test
client_uri: https:/authlib.org
grant_types: ['authorization_code, password']
redirect_uris: ['https://authlib.org']
response_types: ['code']
scope: profile
token_endpoint_auth_method: client_secret_basic

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

example-oauth2-server ページから始め、表示されているクライアント認証情報を使って /oauth/token エンドポイントへの報告された curl リクエストを再現します。password-grant リクエストが unauthorized_client を返す理由を追跡し、原因を特定できるだけの診断上の明確さを追加して、修正後のリクエストが成功することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
api, authentication
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。