AtlassianPS / JiraPS

PowerShell module to interact with Atlassian JIRA
https://AtlassianPS.org/module/JiraPS
MIT License
323 stars 131 forks source link

Using JiraPS forces user to use captcha on the login page #334

Open michalporeba opened 5 years ago

michalporeba commented 5 years ago

Description

We have a Jira installation with windows domain integrated logins. Recently after changing my domain password I started to have problems with JiraPS. Every time I try to create a new session using New-JiraSession I'm getting an error ..... saying I need to log in on the website first. When I go to the website I need to solve a captcha to log in. If I then log out and back in using the website I can log in without the captcha. Then as soon as I try to use New-JiraSession I get the same error and I need to enter captcha on the login screen. The problems started just after I changed my password.

Have you seen something like that? Is that a problem with JiraPS, or Jira or is it the user error?

Environment

PS C:\> Get-Module JiraPS -ListAvailable | Select Name, Version

Name   Version
----   -------
JiraPS 2.9.0
JiraPS 2.8.6
lipkau commented 5 years ago

I have never seen this behavior.

I have a similar thing: as soon as I create a session in JiraPS, my browser sessions are invalidated and I have to log in again in the browser. I did not investigate this, as I don't even know where to start. JiraPS uses basic auth - and not sessions. I don't see why this should affect sessions in the browser.

If someone is able to track this down, I will gladly try to fix it in the module

michalporeba commented 5 years ago

I never had this problem. I was able to use Jira in the browser and JirePS until very recently. Now I cannot use JiraPS at all. I'll see if I can find anything more.

stevenyoungs commented 5 years ago

Hi Michal, I’ve seen similar behaviour with our own Jira instance. Clearing the need for the user to solve a CAPTCHA has always cleared the problem for me in the past. To do this, find your user account in the user management area of Jira. There’s a fairly obvious link to remove the CAPTCHA (below the most recent login information from memory)

Steve

From: Michał Poręba Sent: 26 January 2019 11:05 To: AtlassianPS/JiraPS Cc: Subscribed Subject: Re: [AtlassianPS/JiraPS] Using JiraPS forces user to use captcha onthe login page (#334)

I never had this problem. I was able to use Jira in the browser and JirePS until very recently. Now I cannot use JiraPS at all. I'll see if I can find anything more. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

michalporeba commented 5 years ago

So after few days of reading and trying all sorts of things to fix it, I became convinced the problem must be with the password itself. It turns out that passwords cannot contain £ character.

lipkau commented 5 years ago

That sounds strange, as passwords are url encoded. But I will try to reproduce this

lipkau commented 5 years ago

Hi @michalporeba Is this a cloud server or an on-premise one?

If it's a cloud server, you should only be using API Tokens for authentication https://atlassianps.org/docs/JiraPS/about/authentication.html#api-token