snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.88k stars 3.14k forks source link

[Feature Request]: OAuth Support for emails #12283

Open aj-bayanat opened 1 year ago

aj-bayanat commented 1 year ago

Is your feature request related to a problem? Please describe.

Microsoft is going to stop legacy auth support in early 2023. Right now there is a command line option to allow legacy auth for your 365 tenants but it's going to completely be gone very soon.

Describe the solution you'd like

Sinpe-IT natively supports oauth for using a mail account to send emails.

Describe alternatives you've considered

No response

Additional context

No response

welcome[bot] commented 1 year ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

Codewow commented 1 year ago

Related to an existing item #12277

Hoping this gets addressed as well. No emails work if you use Microsoft Outlook as an email provider. :(

aj-bayanat commented 1 year ago

Have you found a temporary solution for this ? I was looking into https://github.com/simonrob/email-oauth2-proxy That maybe could help me during the transition. Right now I am using a generic gmail account which looks really bad in the organization.

GitHub
GitHub - simonrob/email-oauth2-proxy: An IMAP/POP/SMTP proxy that transparently adds OAuth 2.0 authentication for email clients that don't support this method.
An IMAP/POP/SMTP proxy that transparently adds OAuth 2.0 authentication for email clients that don't support this method. - GitHub - simonrob/email-oauth2-proxy: An IMAP/POP/SMTP proxy that tra...
Codewow commented 1 year ago

Have you found a temporary solution for this ? I was looking into https://github.com/simonrob/email-oauth2-proxy That maybe could help me during the transition. Right now I am using a generic gmail account which looks really bad in the organization.

GitHubGitHub - simonrob/email-oauth2-proxy: An IMAP/POP/SMTP proxy that transparently adds OAuth 2.0 authentication for email clients that don't support this method.An IMAP/POP/SMTP proxy that transparently adds OAuth 2.0 authentication for email clients that don't support this method. - GitHub - simonrob/email-oauth2-proxy: An IMAP/POP/SMTP proxy that tra...

I haven’t had time to look for any alternatives, but that looks like a pretty simple intermittent solution while this gets addressed directly. I may have to try it out and see how it works.

GitHub
GitHub - simonrob/email-oauth2-proxy: An IMAP/POP/SMTP proxy that transparently adds OAuth 2.0 authentication for email clients that don't support this method.
An IMAP/POP/SMTP proxy that transparently adds OAuth 2.0 authentication for email clients that don't support this method. - GitHub - simonrob/email-oauth2-proxy: An IMAP/POP/SMTP proxy that tra...
aj-bayanat commented 1 year ago

I am currently using the Oauth proxy at work. It works great and even works for legacy printers, ups's etc

Codewow commented 1 year ago

I am currently using the Oauth proxy at work. It works great and even works for legacy printers, ups's etc

Awesome! Our basic auth is still working, so we're sitting on it for the time being. But we know we don't have long before it's disabled entirely.

reycasper commented 1 year ago

Does any one have success on setting up 365 Oauth2?

uberbrady commented 7 months ago

That's my question as well - any luck from anyone on setting up sending mail through Office 365? It looks like the underlying mail libraries actually support XOAUTH2 as an authentication mechanism, so if that's all we need (and that's a big IF) - then it looks like it should work?