"Sign in to Microsoft" button error in Edit Email Address screen

This forum is for programmers who have questions about the source code.
Post Reply
mowgli
Posts: 134
Joined: Fri Sep 14, 2007 1:42 pm

"Sign in to Microsoft" button error in Edit Email Address screen

Post by mowgli » Wed Mar 22, 2023 11:16 am

Has anyone using source code for Open Dental v22.2+ got that "Sign in to Microsoft" button working yet in the Edit Email Address screen? "Sign in to Google" works fine, but the Microsoft button gets an error that the "tenant" parameter is missing.
I think we might be able to make the little app (on Universal Windows Platform, right?) with our own client and tenant ID's for MS Azure services, according to instructions here from OD support:

https://learn.microsoft.com/en-us/azure ... evlang-uwp

Not sure how to get that hooked into Open Dental though! Would like to get a pointer or two, or any option suggestions.

mowgli
Posts: 134
Joined: Fri Sep 14, 2007 1:42 pm

Re: "Sign in to Microsoft" button error in Edit Email Address screen

Post by mowgli » Wed Mar 22, 2023 12:45 pm

It looks like the Windows Presentation Foundation button was highlighted at that URL

mowgli
Posts: 134
Joined: Fri Sep 14, 2007 1:42 pm

Re: "Sign in to Microsoft" button error in Edit Email Address screen

Post by mowgli » Thu Apr 13, 2023 7:40 am

Got an app to run, but when you try to sign in, it gives this error and can't seem to get past it. Keeps submitting the "ms-appx-web" path with an SID even if I edit it in MainPage.XML.cs. The "ms-appx-web" path cannot be added to the app as a valid redirect URI.

Message: AADSTS50011: The redirect URI 'ms-appx-web://Microsoft.AAD.BrokerPlugin/S-1-15-2-2144959707-3590633490-2171854935-3561732754-524222615-2256343327-298623158' specified in the request does not match the redirect URIs configured for the application '521e8dde-2534-4085-a0f7-9be33989c8ba'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.

allends
Posts: 235
Joined: Fri Aug 23, 2013 11:29 am

Re: "Sign in to Microsoft" button error in Edit Email Address screen

Post by allends » Thu Apr 13, 2023 9:54 am

It is not possible to call some of our dlls using another application.
We use a proprietary method of connecting to Microsoft, as required by Microsoft.
You would need to go through the same process, and build that into your application, in order to email through your app.
Allen
Open Dental Software
http://www.opendental.com

mowgli
Posts: 134
Joined: Fri Sep 14, 2007 1:42 pm

Re: "Sign in to Microsoft" button error in Edit Email Address screen

Post by mowgli » Mon Apr 24, 2023 6:50 am

Thanks for replying. Just to clarify, are you saying there would be no way to pull the Microsoft token into Open Dental from the open source version of the program with a plugin? Even if, as a tenant using Azure AD, we have a signed and certified MS sign-in app?

allends
Posts: 235
Joined: Fri Aug 23, 2013 11:29 am

Re: "Sign in to Microsoft" button error in Edit Email Address screen

Post by allends » Mon Apr 24, 2023 8:40 am

You are correct. Open Dental does not support replacing our Microsoft token with a 3rd party Microsoft token.
Allen
Open Dental Software
http://www.opendental.com

Post Reply