Re: Unable to Sign In to SSO Login

Manoj Kiradi <[email protected]> Fri, 17 May 2024 01:21:29 +0800
Newsgroups gmane.comp.jakarta.jmeter.user
Message-ID <CAMuDmA1jQNfqM7NBYLkd-f-uNh4FqX7eWPSpWjSbjM=9VkdM5A@mail.gmail.com>
Hi Aditya

Screenshots are attached in my previous email as requested. Please share
your thoughts.

Thanks
Manoj


On Thu, 16 May 2024 at 5:25 PM, Manoj Kiradi <[email protected]> wrote:

> Here are a couple of snapshots to explain the issue. Hope this helps.
>
> Enter Password call showing 'Redirecting' status instead *Sign in to your
> account*
> [image: image.png]
>
> Signed In call is obviously Failed as the user didn't get past 'Enter
> Password' page
> [image: image.png]
>
> On Thu, May 16, 2024 at 5:07 PM Dmitri T <[email protected]> wrote:
>
>> Manoj Kiradi wrote:
>> > Hello
>> >
>> > I have a Login scenario to script that involves SSO. I've correlated all
>> > dynamic values be it in request body, headers and URL but the script is
>> > failing at 'Sign In screen after a Password is Entered'.
>> > I've checked and can confirm that parameter URLEncoding is taken care
>> of.
>> > Also, compared all requests body and params with browser Dev Tools
>> traffic
>> > and Fiddler traffic, I couldn't find any parameter/value that is
>> missing in
>> > JMeter script.
>> >
>> > Looks like the request is posting correct values as expected by the
>> > application but still can't go past Sign In. Able to go past the 'Enter
>> > Username' screen but just stuck at 'Enter Password' screen.
>> >
>> > Any suggestions and support on this issue is greatly appreciated. Thank
>> you!
>> >
>> > Failed Request:
>> > *POST https://login.microsoftonline.com/{param}/login
>> > <https://login.microsoftonline.com/{param}/login>*
>> >
>> > Above request Post below dynamic unique identifiers data-
>> > Username
>> > Password
>> > *hpgrequestid*
>> > *flowToken*
>> > *canary*
>> > *ctx*
>> >
>> > Response Body data of above failed request:
>> > *<head>*
>> > *<title>Redirecting</title>*
>> >
>> > Title displayed as '*Redirecting*' instead should be '*<title>Sign in to
>> > your account</title>*'
>> >
>> >
>> > Regards
>> > Manoj
>> >
>> If everything is properly correlated
>> <https://www.blazemeter.com/blog/correlation-in-jmeter> you might need
>> to play with "Redirect automatically" and "Follow redirects" boxes of
>> the HTTP Request
>> <
>> https://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request>sampler.
>>
>> Also it might be the case the redirection happens via JavaScript
>> modification of Window.location
>> <https://developer.mozilla.org/en-US/docs/Web/API/Window/location>
>> property and as JMeter cannot execute JavaScript you will need to add an
>> extra HTTP Request sampler and populate the URL yourself.
>>
>> You can take a look at
>>
>> https://bitbucket.org/blazemeter/oauth2-correlation/src/master/atlassian-microsoft-oauth.jmx
>> example script as a reference.
>>
>
>
> --
> Regards
> Manoj
>
image.png (image/png, 74.3 KB) - not displayed
image.png (image/png, 240.8 KB) - not displayed