Forums

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

How to get oAuth code without javascript

Andrew Bogdanov
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!
November 26, 2021

Hi. I'm creating an app that will handle data from Jira Service Desk Cloud.  This app is fully Backend.

I tried to use oAuth 2 for this but it requires Javascript to get permissions. Is it possible somehow to do it without user browser interaction? Something like:

1. go to 

https://auth.atlassian.com/authorize?audience=api.atlassian.com&client_id=CLIENT_ID&scope=manage:servicedesk-customer%20write:servicedesk-request%20read:servicedesk-request%20offline_access&redirect_uri=http://localhost:8980/callback&state=YOUR_USER_BOUND_VALUE&response_type=code

2. Get the code in the response using http client

3. Create token & refresh_token

 

Or is it better to create api token for the user and use it for authorized requests?

 

Thanks!

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, jira service management, jsm webinar, ai in jsm, opsgenie integration, incident management, virtual agent, atlassian intelligence, ai-powered service desk, it operations, atlassian learning, service management webinar, team '25 recap

What’s new in Jira Service Management 🤔

Discover how Atlassian is revolutionizing service management with cutting-edge solutions for AI-powered support, HR Service Management, or DevOps connectivity.

Register here ⬇️
AUG Leaders

Atlassian Community Events