fix: Update SSO login flow to encode redirect_uri (#5006)

Signed-off-by: Amazingca <autumn@amazingca.dev>
pull/5012/head
Amazingca 2 months ago committed by GitHub
parent a9508b2546
commit a3add85c95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -48,7 +48,7 @@ const SignIn = observer(() => {
}
const authUrl = `${oauth2Config.authUrl}?client_id=${
oauth2Config.clientId
}&redirect_uri=${redirectUri}&state=${stateQueryParameter}&response_type=code&scope=${encodeURIComponent(
}&redirect_uri=${encodeURIComponent(redirectUri)}&state=${stateQueryParameter}&response_type=code&scope=${encodeURIComponent(
oauth2Config.scopes.join(" "),
)}`;
window.location.href = authUrl;

Loading…
Cancel
Save