From e96972303b84e84b7e8b3ea8299644bf89b4facd Mon Sep 17 00:00:00 2001
From: Kevin Lyda <kevin@ie.suberic.net>
Date: Wed, 8 Aug 2018 11:49:46 +0100
Subject: [PATCH] Add prompt=login.

---
 server/auth/microsoft/microsoft.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/server/auth/microsoft/microsoft.go b/server/auth/microsoft/microsoft.go
index b3c5ed5d..38336f64 100644
--- a/server/auth/microsoft/microsoft.go
+++ b/server/auth/microsoft/microsoft.go
@@ -180,7 +180,9 @@ func (c *Config) Revoke(token *oauth2.Token) error {
 // StartSession retrieves an authentication endpoint from Microsoft.
 func (c *Config) StartSession(state string) *auth.Session {
 	return &auth.Session{
-		AuthURL: c.config.AuthCodeURL(state, oauth2.SetAuthURLParam("hd", c.tenant)),
+		AuthURL: c.config.AuthCodeURL(state,
+			oauth2.SetAuthURLParam("hd", c.tenant),
+			oauth2.SetAuthURLParam("prompt", "login")),
 	}
 }
 
-- 
GitLab