Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get oAuth code without javascript

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
Site Admin
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you