-
I usually test in postman to help keep the responses logged since I have to develop in Unreal Engine. I'm currently having trouble on step two, but I think I need a bit of clarification about the URL encoding. Step one's POST request hits the endpoint with a successful HTML response with the hidden form. My second GET response gives me the same HTML, almost as if I was making the same POST request from earlier. Here are my requests for steps one and two respectively. Update: I've updated the cookie 'value' to be everything between 'tesla-auth.sid=' and the ';'. Still having the same issue. As far as encoding goes my method is to create and 86 element random byte array, converting it to SHA256, then converting to BASE64URL. I'm also not sure if this is my problem, or if its the correct order as I've heard many mixed answers, understandably so it's all up in the air and guesswork. Also the body of the request in step two is www-form-encoded. I get the exact same error in my ue4 environment so I have a hunch my problem is application agnostic. Albeit all the encoding is done in c++ in unreal engine. If anyone has any input on this that would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
UPDATE: This problem was due to postman auto-redirecting the request. In postman there is a per request setting that needs to be disabled in order to get the 302 response. |
Beta Was this translation helpful? Give feedback.
-
Although redirecting is one of the issues, my "Location" header doesn't have the proper redirect url, it's simply sending back my POST url from step one |
Beta Was this translation helpful? Give feedback.
-
`public class TeslaTest {
|
Beta Was this translation helpful? Give feedback.
UPDATE: This problem was due to postman auto-redirecting the request. In postman there is a per request setting that needs to be disabled in order to get the 302 response.