OAuth authentication for stash

Is there a way to get Oauth tokens for stash manually apart from basic authentication? During basic authentication provided in you documentation I am getting sessionId and other parameters. Can I use sessionId for further communication with snippet plugin of stash?

1 answer

The Snippets for Stash plugin supports the same authentication as the core REST API of Stash or Stash itself. From the documentation:

Any authentication that works against Stash will work against the REST API. The prefered authentication methods are HTTP Basic (when using SSL) and OAuth. Other supported methods include: HTTP Cookies and Trusted Applications.

You can find OAuth code samples in several programming languages at bitbucket.org/atlassian_tutorial/atlassian-oauth-examples.

Hope this helps

How can i use JsessionId to connect to snippets for my further communications? I tried including it in URL but no use. Can you show a sample of using JsessionId for communication with plugins.

Did you try to add it as a cookie in the header of the request?

Did you try to add it as a cookie in the header of the request?

i tried adding header "Set-Cookie" but it didn't work. Anyways i was able to do oauth authentication with stash using python script. Thanks for the help

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in United States

Atlassian Certification

Hello, Today it is about Atlassian Certification. Do you have an interest in taking the exam? If yes share with us so if we have couple people we can start a group study. All the best,   ...

53 views 7 1
View post

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you