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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.