Page 2 of 3
Re: Microsoft Basic Authentication
Posted: Mon Oct 14, 2024 5:47 pm
by shiggs68
Version 5.9.9.0 contains the fix which works.
Re: Microsoft Basic Authentication
Posted: Mon Oct 14, 2024 11:50 pm
by reddawg
shiggs68 wrote: ↑Mon Oct 14, 2024 5:47 pm
Version 5.9.9.0 contains the fix which works.
My understanding is that Basic Authentication for MS Hotmail/Live/Outlook was depreciated/discontinued sometime in September 2024 by Microsoft. This was about the time when I noticed that Blue Iris email notifications stopped working using Hotmail for me. Could you expand on how you got MS Hotmail/Live/Outlook to work sending email notifications in Blue Iris with version 5.9.9.0? Since basic authentication is no longer working, I have been trying to get Hotmail to work using OAuth authentication in Blue Iris with no success. I am using Blue Iris 5 version 5.9.9.0. I would appreciate if you could post what your e-mail server settings are for Hotmail/Live/Outlook.
Re: Microsoft Basic Authentication
Posted: Tue Oct 15, 2024 11:18 am
by louyo
I put in my email address for user:
me@outlook.com
Selected oauth, it sent me to outlook to sign in, asked for my alternate email address, sent a code to it. When I entered the code, it connected and BI was good to go.
Re: Microsoft Basic Authentication
Posted: Tue Oct 15, 2024 1:56 pm
by reddawg
louyo wrote: ↑Tue Oct 15, 2024 11:18 am
I put in my email address for user:
me@outlook.com
Selected oauth, it sent me to outlook to sign in, asked for my alternate email address, sent a code to it. When I entered the code, it connected and BI was good to go.
I followed the same steps as you described and it said that it was successful. However, if I clicked the TEST button, I received an error:
Error with connecting server; Current server: smtp.office365.com; Connect failed, error: 0x0000274c
- E-mail - Hotmail OAuth 2.jpg (156.52 KiB) Viewed 7666 times
Re: Microsoft Basic Authentication
Posted: Thu Oct 17, 2024 12:11 am
by louyo
Not sure what to say, My address is outlook.com but I wouldn't think that matters.
Re: Microsoft Basic Authentication
Posted: Thu Oct 24, 2024 4:01 am
by reddawg
Update:
As most of your know, version 5.9.9.x added support for Microsoft OAuth email authentication. For some strange reason, Microsoft OAuth email authentication would not work for me with my Hotmail account. After updating to version 5.9.9.1 and changing the email server Preset from
MS Hotmail/Live/Outlook to
MS Graph API, I am now able to send email notification using my Hotmail email in Blue Iris. So, I guess anyone else having trouble sending email alerts using Hotmail and OAuth should try changing the email server Preset to MS Graph API and then click the OAuth button and link Blue Iris to Microsoft Hotmail. Cheers!
5.9.9 - October 9, 2024
Email components have been updated.
Support has been added for Microsoft OAuth email authentication. As was the case
previously for Gmail, you must now select the new server on Settings/Email and use the
OAuth button to connect your Blue Iris with your Microsoft email account. Most accounts
should work with the Hotmail/Live/Outlook setting, but some may require the Microsoft
Graph API option.
Re: Microsoft Basic Authentication
Posted: Mon Oct 28, 2024 3:36 pm
by jasperchan
With basic authentication disabled, Send As from Gmail no longer works with personal outlook accounts. My company created a service to act as a bridge for our employees, but have decided to open the service up for other users experiencing the same issue:
https://sendas.email
The code is all open source (and you can even run the service yourself):
https://github.com/jasperchan/gmail-to-outlook-proxy
Re: Microsoft Basic Authentication
Posted: Sun Nov 03, 2024 11:19 pm
by Climatic0906
Hi,
There is something weird happening with the Graph API auth for sending email.
I've configured for both a hotmail account (as it was with basic authentication) and with my corporate M365 account, and in both cases the Test email goes through without issues, but when it has to send a notification due to an alert I see this in the logs:
Code: Select all
Email: Error with MsGraph Api; 403 Forbidden; {"error":{"code":"ErrorAccessDenied","message":"Access is denied. Check credentia
Analysis of the sign-ins on the M365 side show both the interactive and non-interactive sign-ins as successful so I'm a bit lost on what the issue is. A bit of googling points to it possibly being a role issue with the token request but I haven't found a way to actually check what's the token used by Blue Iris when sending the request to Graph API (short of doing packet capture with Wireshark? But with SSL enabled even that would be encrypted):
https://stackoverflow.com/questions/431 ... ies-on-ten
https://stackoverflow.com/questions/490 ... -error-tex
EDIT: The fact that it works when testing but not when triggering makes me wonder if the code is different for those two actions and needs to be aligned?
EDIT2: It appears to work when notifying without any attachments and when notifying with only a picture, but when attaching a video (which was working with basic authentication) it doesn't seem to work. Could it be related to the file size of the video?
EDIT3: Ok, this is clearer:
Using the Microsoft Graph API, you can attach files up to 150 MB to an Outlook message or event item. Depending on the file size, choose one of two ways to attach the file:
If the file size is under 3 MB, do a single POST on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. The successful
POST
response includes the ID of the file attachment.
If the file size is between 3 MB and 150 MB, create an upload session, and iteratively use
PUT
to upload ranges of bytes of the file until you have uploaded the entire file. A header in the final successful
PUT
response includes a URL with the attachment ID.
To attach multiple files to a message, choose the approach for each file based on its file size and attach the files individually.
https://community.claris.com/en/s/quest ... pi-problem
https://learn.microsoft.com/en-us/graph ... ?tabs=http
So blue iris hasn't implemented the upload session method to be able to upload a file bigger than 3MB with an email.
Re: Microsoft Basic Authentication
Posted: Thu Nov 21, 2024 11:45 am
by Anmorg96
Hey, I ran into the same issue after Microsoft's changes. The thing is, they've disabled basic authentication for their SMTP services, so now you need to use OAuth2. Unfortunately, Blue Iris doesn't natively support OAuth2 at the moment (at least not in version 5.x).
You can try this workaround:
Switch to a third-party SMTP service: Services like SendGrid or Mailgun often support simpler authentication methods and work well with Blue Iris. Just set up an account with one of these services, configure their SMTP details in Blue Iris, and you should be good to go.
This avoids the need for Microsoft’s OAuth2 entirely.
Re: Microsoft Basic Authentication
Posted: Thu Nov 28, 2024 2:32 am
by BR116
reddawg wrote: ↑Tue Oct 15, 2024 1:56 pm
louyo wrote: ↑Tue Oct 15, 2024 11:18 am
I put in my email address for user:
me@outlook.com
Selected oauth, it sent me to outlook to sign in, asked for my alternate email address, sent a code to it. When I entered the code, it connected and BI was good to go.
I followed the same steps as you described and it said that it was successful. However, if I clicked the TEST button, I received an error:
Error with connecting server; Current server: smtp.office365.com; Connect failed, error: 0x0000274c
E-mail - Hotmail OAuth 2.jpg
Same here, no success and stopping the test before the message crashes BI.