-
Notifications
You must be signed in to change notification settings - Fork 3k
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
SSO on different site support #423
Comments
Hi! You can make a request to a host other than the default one, simply by specifying the full URL. Something like this: response = self.client.post("http://my-sso.host.com/login")
token = get_token_from_response(response)
self.client.post("/auth", {"token": token}) |
@lanphan Were you able to do it? I have the same task now. I have to open a website 'https://xxx.com'. It will use okta and automatically login with my credentials and then display all the applications I have access to. Then I have to select the application I need to test by clicking on the hyperlink which inturn redirects to another url https://yyy.com. Kindly let me know how you managed to automate this whole process using locust. @heyman I tried your process, but I am getting error message "SSLError(MaxRetryError('HTTPSConnectionPool(host='xxx.com', port=11111): Max retries exceeded with url: /enterpriseLogin (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))',),). Please let me know if I am doing something wrong here. |
Dear all,
I'd like to ask that can we use Locust to support sending request to 2 different hosts in the same task? Because we have SSO site separately, we need to have 2 requests in 1 task:
I did use Locust to load testing 1 simple site quite easily, but for this case, I'm struggling ...
The text was updated successfully, but these errors were encountered: