Exception: expected 302 redirect
See original GitHub issueHello,
I keep getting this error and have no clue why is that.
[*] Successfully extracted the IdP certificate
[*] CN: cn=TrustedCertChain-1,cn=TrustedCertificateChains,cn=<redacted>.local,cn=Tenants,cn=IdentityManager,cn=Services,dc=<redacted>,dc=local
[*] Domain: <redacted>.local
[*] Successfully extracted trusted certificate 1
[*] Successfully extracted trusted certificate 2
[*] Obtaining hostname from vCenter SSL certificate
[*] Found hostname <redacted>.<redacted>.local for <redacted>
[*] Initiating SAML request with <redacted>
[-] Failed initiating SAML request with <redacted>
Traceback (most recent call last):
File "/home/morpheus/stuff/vcenter_saml_login/vcenter_saml_login.py", line 347, in <module>
req = saml_request(args.target)
File "/home/morpheus/stuff/vcenter_saml_login/vcenter_saml_login.py", line 241, in saml_request
raise Exception("expected 302 redirect")
Exception: expected 302 redirect
I did check a little bit and if I understand correctly, the code expects to 302 redirect and gives exception when it doesn’t. The thing is, the host is making 302 redirect but still, I’m getting this exception. Any help, suggestions will be priceless. Thanks.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How To Fix the HTTP 302 Error (5 Methods)
HTTP 302 codes are useful to temporarily redirect website users to another URL. If you're getting this error code, here are 5 ways...
Read more >302 Found - HTTP - MDN Web Docs
The HyperText Transfer Protocol (HTTP) 302 Found redirect status response code indicates that the resource requested has been temporarily ...
Read more >How to Fix 302 Found Error (5 Methods)
If the HTTP 302 status code is delivered through the post request, the web browser should not redirect content without the user's confirmation....
Read more >ConnectionRefusedError error on 302 redirects · Issue #4167
302 redirects insert localhost into url (and change scheme from https to http). Aside: urllib3 works fine: http = urllib3.PoolManager() ...
Read more >redirect - What does HTTP/1.1 302 mean exactly?
A 302 redirect means that the page was temporarily moved, while a 301 means that it was permanently moved. 301s are good for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks for all the info. I’ll dig into a 7.0.3 when I have some time to dig into this some more.
Getting this 302 redirect error as well. Just wanted to check if anyone has figured out a fix.