Microsoft Basic Authentication
Re: Microsoft Basic Authentication
Version 5.9.9.0 contains the fix which works.
Re: Microsoft Basic Authentication
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.
Blue Iris v5.9.9.1 | Win10 x64 version 22H2 | Dahua IPC-HFW2100, Amcrest IP2M-841W, Hikvision MINI PT DS-2CD2F52F-IS, Edimax IC-3030iWn | Intel i5-8700 CPU, 16GB Ram, Samsung NVMe SSD 970 PRO 1TB, Samsung SSD 870 EVO 1TB
Re: Microsoft Basic Authentication
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.
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
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: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.
Error with connecting server; Current server: smtp.office365.com; Connect failed, error: 0x0000274c
Blue Iris v5.9.9.1 | Win10 x64 version 22H2 | Dahua IPC-HFW2100, Amcrest IP2M-841W, Hikvision MINI PT DS-2CD2F52F-IS, Edimax IC-3030iWn | Intel i5-8700 CPU, 16GB Ram, Samsung NVMe SSD 970 PRO 1TB, Samsung SSD 870 EVO 1TB
Re: Microsoft Basic Authentication
Not sure what to say, My address is outlook.com but I wouldn't think that matters.
- Attachments
-
- emailserver.PNG (155.7 KiB) Viewed 7462 times
Re: Microsoft Basic Authentication
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!
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.
Blue Iris v5.9.9.1 | Win10 x64 version 22H2 | Dahua IPC-HFW2100, Amcrest IP2M-841W, Hikvision MINI PT DS-2CD2F52F-IS, Edimax IC-3030iWn | Intel i5-8700 CPU, 16GB Ram, Samsung NVMe SSD 970 PRO 1TB, Samsung SSD 870 EVO 1TB
-
- Posts: 1
- Joined: Mon Oct 28, 2024 3:32 pm
Re: Microsoft Basic Authentication
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
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
-
- Posts: 1
- Joined: Sun Nov 03, 2024 11:15 pm
Re: Microsoft Basic Authentication
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:
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:
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.
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
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:
https://community.claris.com/en/s/quest ... pi-problem
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://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
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.
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.
"We are stardust that has learned to look at the sky." - Carl Sagan
Re: Microsoft Basic Authentication
Same here, no success and stopping the test before the message crashes BI.reddawg wrote: ↑Tue Oct 15, 2024 1:56 pmI 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: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.
Error with connecting server; Current server: smtp.office365.com; Connect failed, error: 0x0000274c
E-mail - Hotmail OAuth 2.jpg