📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
always make users choose their signin account when using sso
Blue Mousec4b4416c3b24
diff --git a/backend/apps/cloud/src/auth/auth.service.ts b/backend/apps/cloud/src/auth/auth.service.tsindex 167f1d43b..a5f8ec902 100644--- a/backend/apps/cloud/src/auth/auth.service.ts+++ b/backend/apps/cloud/src/auth/auth.service.ts@@ -684,6 +684,7 @@ export class AuthService {redirect_uri: OAUTH_REDIRECT_URL,scope: 'email',response_type: 'token',+ prompt: 'select_account',})// Storing the session identifier in redis@@ -819,7 +820,7 @@ export class AuthService {async generateGithubURL() {// Generating SSO session identifier and authorisation URLconst uuid = generateSSOState(SSOProviders.GITHUB)- const authUrl = `https://github.com/login/oauth/authorize?client_id=${GITHUB_OAUTH2_CLIENT_ID}&state=${uuid}&redirect_uri=${OAUTH_REDIRECT_URL}&scope=user:email`+ const authUrl = `https://github.com/login/oauth/authorize?client_id=${GITHUB_OAUTH2_CLIENT_ID}&state=${uuid}&redirect_uri=${OAUTH_REDIRECT_URL}&scope=user:email&prompt=select_account`// Storing the session identifier in redisawait redis.set(getSSORedisKey(uuid), '', 'EX', REDIS_SSO_SESSION_TIMEOUT)