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

Any example for using this crate with Microsoft Office 365 oAuth2 provider #283

Open
Lilit0x opened this issue Feb 20, 2024 · 1 comment

Comments

@Lilit0x
Copy link

Lilit0x commented Feb 20, 2024

I am trying to implement a Microsoft Office oAuth2 provider using the template for Gmail Ouath2. Has anyone done this and could share an example in this repo.

rustworthy added a commit to rustworthy/rust-imap that referenced this issue May 4, 2024
@rustworthy
Copy link

Hey @Lilit0x!

Please see the associated PR #288 with an end-to-end example.

But generally speaking - no matter which authority and provider you are relying upon - as long as you've procured an access token, you just need to implement imap::Authenticator for a struct that holds your access token and - most likely - email address. And if you compare the implementations in gmail_oauth2 and outlook_oauth2 you will see that they are pretty much identical - the benefit of having a protocol 😃

Hopefully, that helps you solve your issue.

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

No branches or pull requests

2 participants