Closed jedesroches closed 10 months ago
Hello @jedesroches
try using client_secret_basic
or client_secret_post
as --auth-method
instead of client_basic
.
If this is the case, I'll add some validation to the auth_method. It looks like it's missing and might cause issues.
Best, Mateusz
Hello @mbilski,
Thank you for your answer. Using client_secret_basic
as an --auth-method
succeeded (as in I got a token, a refresh token and an expiry time), but printed (along with the successful output) the following error to stdout which might be of interest for you :
ERROR go-jose/go-jose: compact JWS format must have three parts
Thank you for your help - this ticket can probably be closed. However, if it were at all possible in the examples part of the documentation to maybe add some concrete examples for the layman ? Currently, it is very easy to know how to do a specific OAUTH2 action from the examples, but very hard to understand or know which one to do when ^^" (i.e. I found neither in the google documentation nor in oauth2c's documentation why the above change you suggested made things work).
Hello,
Thank you for your work on oauth2c ! I am trying to generate tokens in order to use IMAP with gmail. I followed this procedure to generate a client ID and client secret, setting up a Desktop application; and following this document, requested the "https://mail.google.com" scope with the following command:
which fails with the following output:
I have also tried using Mozilla Thunderbird's clientID and client secret (which can be found here) with the same result. Is this a bug ? I see that the clientID is not sent again in the second POST request, maybe it should be ? I am sadly rather unfamiliar with the whole oauth2 flow thing.
Thank you for any tips or pointers on how to get this to work!