Open AndrewR3K opened 1 month ago
Weirdly it seems the following changes has "resolved" the issue for now, this of course though is not ideal.
I have yet to figure out exactly WHY this is causing sporadic duplicate scopes.
// removed: const scope = config.scope && config.scope.length > 0 ? config.scope : ['User.Read']
return sendRedirect( event, withQuery(authorizationURL as string, { client_id: config.clientId, response_type: 'code', redirect_uri: redirectURL, scope: 'Group.Read.All User.Read User.ReadBasic.All profile openid email offline_access', }), )
2. Removed the spread opp
```js
...config.authorizationParams,
I am running into an issue where end users are hitting this error
AADSTS90015: Requested query string is too long
when redirected to the AD login.After digging further into the issue, I noticed that for some odd reason, the "scope" is being appended over 70+* to the authorizationURL.
Has anyone run into this? And if so, do you have a resolution?
Since this has been extremely hard to consistently reproduce, I have been banging my head against a while all day and have yet to find the root cause.
Thanks in advance for the help!