Closed ZTAP0011 closed 3 years ago
-u is for supplying user credentials in the form username:password
See https://www.mit.edu/afs.new/sipb/user/ssen/src/curl-7.11.1/docs/curl.html
On Tue, Feb 2, 2021, 6:51 AM ZTAP0011 notifications@github.com wrote:
$ curl -u ${client_id}:${client_secret} -XPOST http://127.0.0.1:5000/oauth/token -F grant_type=password -F username=${username} -F password=valid -F scope=profile
I am not understanding what is -u option in curl.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/authlib/example-oauth2-server/issues/77, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIDKMTGC7QHND2H3MXUMY3S477OVANCNFSM4W6VLXJQ .
-u is for supplying user credentials in the form username:password See https://www.mit.edu/afs.new/sipb/user/ssen/src/curl-7.11.1/docs/curl.html … On Tue, Feb 2, 2021, 6:51 AM ZTAP0011 @.***> wrote: $ curl -u ${client_id}:${client_secret} -XPOST http://127.0.0.1:5000/oauth/token -F grant_type=password -F username=${username} -F password=valid -F scope=profile I am not understanding what is -u option in curl. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#77>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIDKMTGC7QHND2H3MXUMY3S477OVANCNFSM4W6VLXJQ .
Thank you @shimniok
I am calling /oauth/token to generate the token by passing the code. I set OAUTH2_REFRESH_TOKEN_GENERATOR=True in my flask app config. But I only get access_token in the response but not refresh_token.
$ curl -u ${client_id}:${client_secret} -XPOST http://127.0.0.1:5000/oauth/token -F grant_type=password -F username=${username} -F password=valid -F scope=profile
I am not understanding what is -u option in curl.