Re: Unable to Sign In to SSO Login
"c.schmalenbach" <[email protected]> Thu, 16 May 2024 21:15:47 +0200
| Newsgroups | gmane.comp.jakarta.jmeter.user |
|---|---|
| Message-ID | <[email protected]> |
I have no solution for the problem, but a hint:Use jmeter as a proxy behind your browser and record the exact behaviour an request/response cycle while login from the browser.This helps in many cases to identify missing requests, parameters and so on.kind regardsChristof -------- Ursprüngliche Nachricht --------Von: Manoj Kiradi <[email protected]> Datum: 16.05.24 19:25 (GMT+01:00) An: [email protected] Cc: JMeter Users List <[email protected]> Betreff: Re: Unable to Sign In to SSO Login Hi DmitriYes, I tried both’Follow redirects’ and ‘Redirect Automatically’ but none seems working.Anything else you would like to suggest that may fix this issue?ThanksManojOn Fri, 17 May 2024 at 1:21 AM, Manoj Kiradi <[email protected]> wrote:Hi AdityaScreenshots are attached in my previous email as requested. Please share your thoughts.ThanksManojOn 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 accountSigned In call is obviously Failed as the user didn't get past 'Enter Password' pageOn 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. -- RegardsManoj