Microsoft AAD Login Workflow Failing – “Text too long for this field” Error

Hi Bubble Community,

I’m facing a critical issue with my login workflow in Bubble that is preventing some users from logging into my app. I’m using Microsoft AAD (Microsoft Entra ID, formerly Azure Active Directory) for authentication. While the login works fine for most users, some users encounter the error: “Text too long for this field”. The error seems to be tied to the step where the workflow processes the response from Microsoft AAD.

I’m looking forward to any guidance or workaround.
Thanks in advance!

1 Like

We also had this issue with the token from azure when the token’s user contains too many security permissions, which pushes the text too long for the browser token to hold. We were not able to resolve this and required users with many security permissions to create new azure accounts to access our application

I have had the exact same issue in the past, and the way to resolve it was to build your own flow, outside of the in built OAuth flow. To be fair this method also allows you to have some more control over the default method - For example the in built method will create accounts if users do not exist, whereas building yourself lets you control the rules. There is already some posts on the forum about this, or if you need more information, happy to help! https://forum.bubble.io/t/oauth-user-agent-flow-text-too-long-for-this-field/235454/4

Same issue.

I have the same issue. Will try to build outside the OAuth flow