Hi everyone, I am trying to create an issue using the Atlassian.SDK v13 library in .NET. However, I am getting a 401 with this error:
console.warn('DEPRECATED JS - contextPath global variable has been deprecated since 7.4.0. Use `wrm/context-path` module instead.');
I am using this line of code (below) to create a Jira client in C# which only accepts username and password. Is there a way to use the bearer token? I tried passing the bearer token / basic auth token as a password, but getting the same error.
Atlassian.Jira.Jira.CreateRestClient( url, username, password );
When I use POSTMAN with Bearer token auth, it works.
I guess my question is is this deprecated, is it even possible to use in this scenario? If not, is the only alternative to create a HTTP request and send it directly from the code, without using the library?
Any help is appreciated! Thanks!
Okay, figured it out - in case someone stumbles upon this question.
Url: your Jira URL
Username: your EMAIL address
Password: your Basic API token (not encoded with the email address but rather what you get directly from the creation)
To create the Basic API token:
- go to Profile -> Configure API key
- select Basic auth
- copy the Key that you get and that's your password
Cheers!
Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.
Register today!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.