mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-05-31 06:21:04 +00:00
fix redirect_uri substitution
This commit is contained in:
parent
c769e282fb
commit
c227330d09
@ -387,7 +387,7 @@ std::string PostgreSQL::getSSOAuthURL(const nlohmann::json &member)
|
|||||||
char state_hex[256];
|
char state_hex[256];
|
||||||
Utils::hex(state, 48, state_hex);
|
Utils::hex(state, 48, state_hex);
|
||||||
|
|
||||||
const char *redirect_url = "redirect_uri=https%3A%2F%2Fmy.zerotier.com%2Fapi%2Fnetwork%2Fsso-auth"; // TODO: this should be configurable
|
const char *redirect_url = "https%3A%2F%2Fmy.zerotier.com%2Fapi%2Fnetwork%2Fsso-auth"; // TODO: this should be configurable
|
||||||
OSUtils::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",
|
"%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(),
|
authorization_endpoint.c_str(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user