Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hey everyone,
I'm creating a script that runs on the user end where it checks certain things. If the computer doesn't have the package we want, I want the script to create a ticket with in JIRA using REST method. I can get everything working POSTMAN and also I can create tickets with my script with no issues.
The problem is, I don't want to add my password (even if its Base64) to the script and distribute across the company. Does anyone know a way of using PowerShell or even .NET to use SSO since everyone in the company has the right to create a ticket.
I searched for this answer but couldn't find anything relevant to what I'm trying to do.
Any help would be appreciated. Thank you everyone in advance.
Hi @Guti
Disclaimer: What I am suggesting below will only work if you are running Jira server, not Jira Cloud. Besides it involves a commercial add-on and I work for the vendor of that add-on. However since they rely upon a standard protocol (Kerberos), the examples of code should work with our competitors' add-ons as well.
You may want to take a look at the IWAAC Kerberos SSO add-on which provides password-less authentication based on Kerberos. The add-on is usually intended for browser usage but you can also use it for scripts so as to avoid the need to hard-code a username and password in those programs.
We provide several examples in PowerShell, Python and Groovy on that page.
Hope this helps!
Bruno
Thanks Bruno,
I like the add-on, however not looking to purchase anything at the moment since this is only a side project for me.
I just figured there would be an easy way since all users have the permission to create a ticket without having to enter their credentials (SSO using a browser).
Thanks,
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.