This commit is contained in:
Grant Limberg 2021-05-28 15:01:42 -07:00
parent 6f622e4551
commit c2efdcabc5
No known key found for this signature in database
GPG Key ID: 2BA62CCABBB4095A

View File

@ -333,7 +333,7 @@ void PostgreSQL::updateMemberOnLoad(const uint64_t networkId, const uint64_t mem
Utils::hex(state, 48, state_hex);
char authenticationURL[4096];
const char *redirect_url = "redirect_uri=http%3A%2F%2Fmy.zerotier.com%2Fapi%2Fnetwork%2Fsso-auth"; // TODO: this should be configurable
Utils::ztsnprintf(authenticationURL, sizeof(authenticationURL),
OSUtils::ztsnprintf(authenticationURL, sizeof(authenticationURL),
"%s?response_type=id_token&response_mode=form_post&scope=openid+email+profile&redriect_uri=%s&nonce=%s&state=%s&client_id=%s",
authorization_endpoint.c_str(),
redirect_url,