Forums

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

jira oauth javascript

pascal de laroche February 24, 2018

hi i have managed to generate and receive the 

oauth_access_token
oauth_access_token_secret

 

my question is how do i include it my request header 

 

This is my current header 

let headers = new HttpHeaders() ;

headers .set( 'Authorization', 'token ' + this.token )

.set( 'Authorization', 'secret ' + this.secret )

.set( 'Content-Type' , 'application/json' )

.set( 'Accept' , 'application/json', ) ;

 

i also tried 

.set( 'Authorization', 'Bearer ' + this.token ) 

 

Using twice Authorization seems wrong but how to use it right 

I am using angular5 for an app

 

Getting error 

 

Failed to load https://xxx.atlassian.net/rest/auth/1/session: No 'Access-Control-Allow-Origin' header is present on the requested resource.

1 answer

0 votes
Mayur Vats
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 11, 2019

Hi Pascal,

 

Did you get a solution to this problem ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events