microsoft-authentication-library-for-android icon indicating copy to clipboard operation
microsoft-authentication-library-for-android copied to clipboard

"Bad request - Header Field too long"

Open realdadfish opened this issue 2 years ago • 1 comments

Describe the bug This issue pops up for some of our production users. After starting the authentication flow and selecting a user certificate, the MSAL library request results in an error 400 "Bad Request - Header Field too long"

Smartphone (please complete the following information):

  • Device: Nokia X20
  • Android Version: Android 13
  • Browser: Probably WebKit WebView
  • MSAL Version: 4.1.3

Stacktrace n/a

We've figured other places where this issue pops up in Azure AD, though not on Android, like https://stackoverflow.com/questions/46100272/azure-portal-bad-request-request-too-long#:~:text=The%20error%20HTTP%20400%3A%20Size,O365%2C%20Azure%2C%20etc, however, we're unable to find a way influencing the library's cookie / authentication handling to follow any of the advice that is given.

realdadfish avatar Jul 31 '23 15:07 realdadfish