ipV6 failing first time, working everytime subsequently
chakras
nginx-forum at forum.nginx.org
Fri Jan 7 17:02:03 UTC 2022
Hello Francis,
To answer your question partially, username/ password validation happens on
GCP server. We do a POST request and send a JSON object with those values
filled in. If the login succeeds, we send back a token. Nginx is really
working just as a proxy here. Something like this on browser Network debug
log,
Request URL: https://xxxxx.us/gcp/users/auth
Request Method: POST
Status Code: 401
Remote Address: xxx.xxx.xxx.xxx
Referrer Policy: strict-origin-when-cross-origin
In this case 401 is valid (I am on IPv4) as the user/ pass was wrong.
Payload:
{username: "johnie", password: "yespapa", remember: null}
Successful login will return 200 and an object that looks something like
this,
access_token: "a.b.c.d"
attributes: {
"username": "string",
"roles": []
etc...
}
Thanks,
Suvendra
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,293266,293287#msg-293287
_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list