Repository navigation
|
Hi there, I'm trying to connect to a mail.ru account via oauth. This is the app I created on https://oauth.mail.ru/app/
And this is the bichon oauth app:
Trying to authorize I get redirected to a consent screen on mail.ru that I can accept, then get redirected back to bichon but receive this error: Any ideas how to get this working? |
Replies: 2 comments
|
mail.ru only returns a refresh token when you ask for it. From the OAuth Mail docs: "to get a refresh_token, the requested scopes must include In the Bichon OAuth app for mail.ru:
Then authorize the account again. The consent screen should list offline access, and the token response will include a |
|
Awesome, that worked! I read through the docs but must have missed that part. Thank you very much! |


mail.ru only returns a refresh token when you ask for it. From the OAuth Mail docs: "to get a refresh_token, the requested scopes must include
offline_access, and addprompt=consentto the request". Bichon requires that refresh token (crates/core/src/oauth2/flow.rsfails withMissingRefreshTokenwhen the token response has none), hence the error.In the Bichon OAuth app for mail.ru:
openid,mail.imapandoffline_access. mail.ru requiresopenid(without it you get a 401) and only grantsmail.imaptogether withopenid.emailis optional.prompt=consent. Bichon appendsextra_paramsto the authorization URL, which is the field meant for this ("e.g., access_typ…