Azure Portal: Bad Request – Request Too Long

The error HTTP 400: Size of header request is too long generally happens because there’s too many cookies or cookies that are too big. Azure AD B2C’s login goes through login.microsoftonline.com, as does almost every Microsoft service (O365, Azure, etc). So if you’ve got several accounts that you’ve signed in to across these services, you’re … Read more

Which Graph API should be used with Azure AD B2C

As of today, we recommend that you use the Azure Active Directory Graph API https://graph.windows.net to access and manage your B2C tenants. Azure AD B2C: Use the Graph API If you read this article, you can learn more about the gaps between AAD and Microsoft Graph API: https://dev.office.com/blogs/microsoft-graph-or-azure-ad-graph The bottom line in the table states: … Read more

Authorize By Group in Azure Active Directory B2C

Obtaining group memberships for a user from Azure AD requires quite a bit more than just “a couple lines of code”, so I thought I’d share what finally worked for me to save others a few days worth of hair-pulling and head-banging. Let’s begin by adding the following dependencies to project.json: “dependencies”: { … “Microsoft.IdentityModel.Clients.ActiveDirectory”: … Read more