Microsoft OAuth error

Hello,

I’m having problems with my system’s authentication using Microsoft OAuth. I’ve already researched and done everything, tested similar plugins and even developed the request manually.

However, the same error occurs in all scenarios. Can you help me?


Can you share your settings?

It’s here,

I just hid my azure information.

When do you get this error? When you are trying to go to authorize screen? Maybe you can record a screencast?

This error occurs on the login page, it performs authentication through Microsoft, but one step before entering the index page, it returns this error.

Do you have another API call after?
Try to not use the generic redirect url
What did you set for the user email key path?

Do you have another API call after?

No

Try to not use the generic redirect url
What did you set for the user email key path?

Can you explain better?

There’s a field called user email key path (that you hide on you screenshot..)
this should be set to mail

userPrincipalName im using

so it won’t work because Bubble expect an email. Change that to mail.

Do I just put “mail” in the field?

yes just “mail”

{
  "businessPhones": [
       "+1 425 555 0109"
   ],
   "displayName": "Adele Vance",
   "givenName": "Adele",
   "jobTitle": "Retail Manager",
   "mail": "AdeleV@contoso.com",
   "mobilePhone": "+1 425 555 0109",
   "officeLocation": "18/2111",
   "preferredLanguage": "en-US",
   "surname": "Vance",
   "userPrincipalName": "AdeleV@contoso.com",
   "id": "87d349ed-44d7-43e1-9a83-5f2406dee5bd"
}

Is the expected payload.

I will test it and get back to you.

Same problem

So now try to remove the generic redirect url, and inspect the returned url (you will also need to change the redirect url in MS as this will use the page where you have the button).

I’m thinking that the issue may be the returned states (but this is not something you handle with Bubble auth)…

Testing now

Same…

Can you see the whole url after the redirect?
Can you share the state?

Here the URL

Session state = session_state=004d3d89-241f-213c-96b9-2887b1b17cde

I don’t have any issue to login to your app… Seem this is related maybe to your account