Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

API with SSO question

Jason Hastain February 9, 2023

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!

1 answer

0 votes
Darin February 9, 2023

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?

Jason Hastain February 9, 2023

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.

Darin February 10, 2023

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.

Jason Hastain February 13, 2023

its for cloud

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events