Forums

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

auth with powershell

Scott Holland October 6, 2021

We have moved to a cloud install and I'm having trouble authenticating with the api using JiraPS. Is there something wrong with the way i'm trying to auth?

 

$reporter = "S@mydomain.local"
$PWord = ConvertTo-SecureString -String "aBCDEFGHIJKL" -AsPlainText -Force
$Cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $reporter, $PWord

Set-JiraConfigServer -Server "https://mydomain.atlassian.net/"

get-JiraIssue -Key CISS-10000 -Credential $Cred

 

 

1 answer

0 votes
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 8, 2021

Hello @Scott Holland ,

After moving to Cloud I first wanted to verify that you are using the API token for authentication, opposed to the basic password auth method that was still possible on Jira Server, as the Basic password authentication was deprecated on Cloud a while back and now requires an API token for basic calls or establishing an OAuth connection for a dedicated app.

Details on the API token for basic calls and Oauth authentication and how JiraPS passes the token can be found below:

Regards,
Earl

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events