I am trying to access our sandbox Jira Assets space using API.
I am having trouble authenticating, I believe due to SSO.
I have tried JWT tokens and get "not authorized"
I've tried Basic authentication with an API token and get {"errorMessage":"Request must be made by an active logged in user"}
What im looking for is a sample script in Python for accessing the Jira Assets Schemas to be able to add/edit/delete assets there.
TIA!
Hi @Jason Hastain that might depend on your SSO system. You might need to send a Bearer token instead of using Basic Auth, but it's hard to say.
Does your SSO system provide an auth token that you can send in the header of your request?
the SSO system we are using is Okta.
Not sure about the bearer token but I will research that.
This is new territory for me so Im not even sure its an SSO problem.
Using Basic auth i get a 404 error which is odd as Im using my sandboxes url which IS working in a browser obviously.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Various SSO systems may require different approaches.
I'm not familiar with Assets APIs, but I see you are using an API Token. Is this for Jira Cloud or Server/Data Center?
For Server/Data Center, you can use basic auth with an encoded username:password.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.