Open eduardojustos opened 2 years ago
ok
@eduardojustos are you using the javascript API to get the oauth code, which then you are using in your example? If so, the redirect url should be the literal "postmessage". Found out about it here: https://stackoverflow.com/questions/11485271/google-oauth-2-authorization-error-redirect-uri-mismatch/48121098#48121098
I am trying to create an automated login in Cypress. I already followed the tutorial in the docs; from this, I can retrieve the user and its information. The problem is that my API uses its own JWT, which I am trying to follow to log in. When I reach the same endpoint as the visual Google SSO callback does, I provide the authorization code hoping to be able to log in, but I keep getting
redirect_uri_missmatch
and not much more information in thegetToken
method.As far as I know, I need to insert in the console the URL that is making the POST, which I did. Also, I know that from the visual login I get the current URL, so I can add it in the console, but not that much from this.
And this starts with a GET from localhost:3000/pas/auth/callback?, so I believe I am missing a small thing here
So far I have localhost:3000 and localhost:3000/pas/auth/callback in the allow list