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.

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Powershell SSO with JIRA

Guti
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 16, 2020

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. 

1 answer

0 votes
Bruno Vincent
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 22, 2020

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

Guti
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 26, 2020

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,   

Suggest an answer

Log in or Sign up to answer