encode network ID into sso state param

This commit is contained in:
Grant Limberg 2021-12-01 15:02:21 -08:00
parent 663a09b38d
commit 730482e62f
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
5 changed files with 101 additions and 103 deletions

View file

@ -459,7 +459,7 @@ AuthInfo PostgreSQL::getSSOAuthInfo(const nlohmann::json &member, const std::str
info.ssoClientID = client_id;
info.issuerURL = issuer;
info.ssoNonce = nonce;
info.ssoState = std::string(state_hex);
info.ssoState = std::string(state_hex) + "_" +networkId;
info.centralAuthURL = redirectURL;
fprintf(
stderr,