Skip to content
Discussion options

You must be logged in to vote

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 add prompt=consent to the request". Bichon requires that refresh token (crates/core/src/oauth2/flow.rs fails with MissingRefreshToken when the token response has none), hence the error.

In the Bichon OAuth app for mail.ru:

  • Scopes: openid, mail.imap and offline_access. mail.ru requires openid (without it you get a 401) and only grants mail.imap together with openid. email is optional.
  • Extra parameters: add prompt = consent. Bichon appends extra_params to the authorization URL, which is the field meant for this ("e.g., access_typ…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tschan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants