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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you try to add it as a cookie in the header of the request?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you try to add it as a cookie in the header of the request?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.