Re: Unable to Sign In to SSO Login

Dmitri T <[email protected]> Thu, 16 May 2024 11:07:23 +0200
Newsgroups gmane.comp.jakarta.jmeter.user
Message-ID <PH7PR12MB7139F24B75FE90DD560A2237C0ED2@PH7PR12MB7139.namprd12.prod.outlook.com>
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.