During consideration of https://developer.okta.com/docs/reference/rl-clientbased/ Okta’s feature we noticed, that occasionally one of our applications, integrated with Okta triggers redundant “/oauth2/default/v1/authorize” calls after some time after user authenticates, up to 8-10 with the following interval:
Meanwhile during troubleshooting, when authorizing and obtaining access and id token via UI, our client applications trigger just appropriate amount of calls & successfully obtain required tokens.
Can you please advice, what can be the cause of those redundant calls, triggered by Okta libraries ?
How were you able to determine that these extra calls were occurring? Were you just seeing them in the browser network events? Do they only happen when the user first hits the application, only during renewal, or any time when the user does not have valid tokens available in the application?
How were you able to determine that these extra calls were occurring? ← we noticed these excessive Okta calls in Okta’s own logs (during preliminary to enabling CBRL feature analysis).
These aforementioned redundant Okta calls get triggered after some time (2-5 hours) of user inactivity, meanwhile when a user authenticates / authorizes via UI, our client application (integrated with Okta) triggers appropriate / expected calls.
Could these additional /authorize requests be related to a failed token renewal, where your app keeps trying to authorize the user (because they are not authenticated) even though the renewal is failing?
Obviously, this would be easier to investigate if this is something you have managed to reproduce yourself.