aboutsummaryrefslogtreecommitdiff
path: root/server/auth/microsoft/microsoft.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/auth/microsoft/microsoft.go')
-rw-r--r--server/auth/microsoft/microsoft.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/server/auth/microsoft/microsoft.go b/server/auth/microsoft/microsoft.go
index 49d9b82..8463ccf 100644
--- a/server/auth/microsoft/microsoft.go
+++ b/server/auth/microsoft/microsoft.go
@@ -175,12 +175,10 @@ 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),
- oauth2.SetAuthURLParam("prompt", "login")),
- }
+func (c *Config) StartSession(state string) string {
+ return c.config.AuthCodeURL(state,
+ oauth2.SetAuthURLParam("hd", c.tenant),
+ oauth2.SetAuthURLParam("prompt", "login"))
}
// Exchange authorizes the session and returns an access token.