authlib / authlib/example-oauth2-server
What is the full curl command to get access token with request token?
- Lenguaje dominante
- Python
- Estrellas
- 705
- Forks
- 279
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Revisa el tutorial de OAuth del repositorio y las solicitudes /oauth/token mostradas en el issue, empezando por el flujo refresh_token. Confirma la forma de solicitud compatible y actualiza el tutorial con un comando curl que funcione; el trabajo estará terminado cuando los pasos de renovación del refresh-token y los parámetros requeridos estén documentados claramente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- authentication, documentation
- Tipo de issue
- Documentación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100