We have jira configured through Okta SSO as Identity provider (IDP).
This works well for accessing JIRA tool thru OKTA sign-in. However, We need to access JIRA REST API to perform some admin operations in a external automation code. I cannot use Basic Auth because I do not have a jira username/password (we have SSO through Okta).
- I am using jira server 9.17.
- If I call the v3 api (sample: rest/api/3/serverInfo) using Personal Access Token, I get a url redirect to okta as response.
- When I call the endpoint rest/api/2/serverInf , it works even if I don't pass any authorization.
- If call other end point for example rest/api/2/application-properties using a personal Access token of a admin user I get 401 with the message "Client must be authenticated to access this resource."
What is the process to call JIRA APIs through Okta SSO?