bump auth module

Follow-up for https://github.com/go-pkgz/auth/pull/107
This commit is contained in:
Dmitry Verkhoturov
2022-02-06 14:22:27 -06:00
committed by Umputun
parent 49d2552a78
commit 6fe83fb6b8
5 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import (
"crypto/sha1" //nolint
"encoding/json"
"fmt"
"github.com/dghubble/oauth1"
"github.com/dghubble/oauth1/twitter"
"github.com/go-pkgz/auth/token"
@@ -173,7 +174,7 @@ func NewBattlenet(p Params) Oauth2Handler {
func NewMicrosoft(p Params) Oauth2Handler {
return initOauth2Handler(p, Oauth2Handler{
name: "microsoft",
endpoint: microsoft.AzureADEndpoint("consumers"),
endpoint: microsoft.AzureADEndpoint("common"),
scopes: []string{"User.Read"},
infoURL: "https://graph.microsoft.com/v1.0/me",
// non-beta doesn't provide photo for consumers yet