Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "For security reasons Jira requires you to log on to the website before continuing", even with PAT (personal access token) #485

Open
mbourgon opened this issue Aug 14, 2023 · 1 comment

Comments

@mbourgon
Copy link

Description

Starting the past couple of weeks, i've started getting this error trying to use JiraPS:
Invoke-JiraMethod : For security reasons Jira requires you to log on to the website before continuing.

Trying to move to using a personal access token doesn't seem to work either.

Steps To Reproduce

  1. Set-JiraConfigServer -Server 'https://jira.mycompany.com"
  2. $username = "mycompanyusername"
  3. $password = "mypersonalaccesstoken"
  4. $secpasswd = ConvertTo-SecureString $password -AsPlainText -Force
  5. $mycreds = New-Object System.Management.Automation.PSCredential ($username, $secpasswd)
  6. New-JiraSession -Credential $mycreds
  7. Get-JiraIssue -Issue "RXNS2-15297"

also not working:
$cred3 = Get-Credential -UserName $username -Message "mypersonalaccesstokenhere"
#at this point it asks for my password - I enter it
New-JiraSession -Credential $cred3

In fact, I get this error on that one:
Invoke-JiraMethod : The user could not be authenticated.

Expected behavior

To log in.

Screenshots

Your Environment

Possible Solution

My only idea is something to do with our local jira instance, but even the documentation barely covers using PATs.

@mbourgon
Copy link
Author

If I use curl -v https://jira.mycompanyname.com --user [email protected]:mypersonalaccesstoken
the page returned says "AUTHENTICATED FAILED"

if I use curl -v https://jira.mycompanyname.com --user myname:mypersonalaccesstoken
the page returned says "AUTHENTICATION_DENIED"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant