The authentication flow occurs as follows:
The request is blocked by the IIS Request Filtering module because the URL length exceeds the default limit of 2,048 bytes.
This issue is specific to Microsoft Entra ID OAuth configurations due to the combined size of the following parameters:
Authorization Code
The OAuth token generated by Entra ID varies in size based on group memberships and security claims (commonly larger for guest or external accounts).
Application State
The Angular Portal appends a state parameter (approximately 600–700 bytes) to support deep linking.
When combined, these parameters can exceed the default maxQueryString limit, causing IIS to reject the request.
Workaround: Increase the maxQueryString value to 32,768 bytes.
To support larger OAuth tokens generated by Microsoft Entra ID, the query string and URL length limits must be increased.
For On-Premises: Update the portal’s web.config file as outlined below.
Steps
For IMOD environments: Please contact One Identity Support to request a review and update of the maxQueryString setting for the API/portal instance.
© 2026 One Identity LLC. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center