HTTP Error 400. The size of the request headers is too long

4.7k views Asked by At

I am trying to do authentication via Azure AD on my Sitecore Instance. I've added my application to the approved list by creating the App Service.

However after the login, the user is redirected to the /Account/ExternalLoginCallback page on the Identity server and it displays the following error message:

HTTP Error 400. The size of the request headers is too long.

1

There are 1 answers

0
Arif On

We have identified the issue the actual cause is: Cookies that are too big as a part of the authentication request.

As a resolution to the problem: Limit the amount of claims you include in your token. For testing change the groupMembershipClaims: null in the manifest file on the azure ad will allow you to authenticate the request.

Reference: Azure Portal: Bad Request - Request Too Long