We have a Jenkins Instance, behind Okta and we have a service account that we use to authenticate to Jenkins API. We use a token with this account. It’s been set like this for about 2 years.
Last month we started having a weird “Stopped after 10 redirects” error whenever we hit the API. But when we log into Jenkins UI as the service account, the error would go away for a few hours but then come back. The URL path looks like it’s appending the securityRealm 10 times. It look like this
https://ourjenkins.net/api/securityRealm/securityRealm/securityRealm/securityRealm/securityRealm/securityRealm/securityRealm/securityRealm/securityRealm/securityRealm/commenceLogin
Any idea why? or how we can fix this? Nothing in the logs is showing useful./