Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: added xoauth2 support, as needed by Microsoft and Google servers #23

Closed
wants to merge 1 commit into from

Conversation

mogoman
Copy link

@mogoman mogoman commented Sep 23, 2022

One of our older services retrieves email from IMAP and doesn't support OAUTH2, so I used the libraries to create a proxy which does the auth part on behalf of the client. However, it seems that Google and Microsoft don't support OAUTHBEARER, but implement a slightly different standard XOAUTH2 (I couldn't find an RFC for this), but their docs are similar:

MS
Google

xoauth2 is basically a copy of oauthbearer but the fields updated:

From

n,a=xxx,\X01(host=aaa\X01port=bbb)auth=Bearer yyy\X01\X01

To

user=xxx\X01auth=Bearer yyy\X01\X01

@mogoman mogoman marked this pull request as ready for review September 23, 2022 10:23
@emersion
Copy link
Owner

NACK. Sorry.

@emersion emersion closed this Sep 23, 2022
@mogoman
Copy link
Author

mogoman commented Sep 23, 2022

Well at least your response was quick, thanks : ). Any more details, or you simply don't want to support anything that is strictly non RFC?

edit: NVM #19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants