authlib / authlib/example-oauth2-server

unauthorized_client

Aperta
#85 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
705
Fork
279
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia dalla pagina example-oauth2-server e riproduci la richiesta curl segnalata all'endpoint /oauth/token utilizzando le credenziali client visualizzate. Traccia il motivo per cui la richiesta password-grant restituisce unauthorized_client, aggiungi sufficiente chiarezza diagnostica per identificare la causa e verifica che la richiesta corretta abbia esito positivo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
api, authentication
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.