authlib / authlib/example-oauth2-server

What is the full curl command to get access token with request token?

Aperta
#86 2 commenti 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

Hi,
The sample in this repo is pretty straightforward and clear. Thanks.

One thing is not mentioned in tutorial is getting new access_token with refresh_token as way of renewing an access_token.

I tried below command and the other which had auth tuple and both failed.

```sh
$ curl -XPOST http://127.0.0.1:8000/oauth/token -F grant_type=refresh_token -F refresh_token=NogJYgBFjH3NmTBDHdDYTCUQBQaMXBFZThdjaHtjraEuT9HM
{"error": "invalid_client"}
```

The other test is adding client_id and cilent_secret:
```sh
curl -u ${client_id}:${client_secret} -XPOST http://127.0.0.1:8000/oauth/token -F grant_type=refresh_token -F scope=profile -F refresh_token=${refresh_token}
{"error": "unauthorized_client"}
```

What is the correct curl command to get access token with refresh token?

Thanks

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Esamina il tutorial OAuth del repository e le richieste /oauth/token mostrate nell’issue, iniziando dal flusso refresh_token. Conferma il formato di richiesta supportato e aggiorna il tutorial con un comando curl funzionante; il lavoro sarà completato quando i passaggi per il rinnovo del refresh-token e i parametri richiesti saranno documentati chiaramente.

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

Valutazione

Stack tecnologico
python
Ambito
authentication, documentation
Tipo di issue
Documentazione
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.