However, when we use OAuth to authenticate, and a user has > 25 groups the request times out, and no response is returned. When we use a static api token to make the same request, the request is returned just fine, even when a user has > 25 groups. When a user has less groups, then using OAuth the request works fine.
We were wondering why this behavior is happening. If it is useful, here is a okta request id from one of the failed requests ‘YC21eK6b7NVjyxWYaQvUegAAAoA’.
We also tried making the same request using OAuth and Postman and did not see this behvior.
@sophilao Hi Could you please clarify the how the issue is reproduced? You meant the no response in this node.js snippets or no response when group >25?
There is no response when listing all groups for a user when the user has more than 25 groups from the node sdk call. But only when the okta client is using OAuth to authenticate, and not when an api token is being used to authenticate.
I figured out why the issue was only happening when we were using an api token. We forgot to include cacheMiddleware: null when generating the OAuth client.
When the response size is too large, there seems to be an infinite loop dealing with the cacheMiddleware.
We asked about this earlier in Okta Help Center (Lightning).