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
+1 -1
View File
@@ -117,7 +117,7 @@ github.com/go-chi/render v1.0.1/go.mod h1:pq4Rr7HbnsdaeHagklXub+p6Wd16Af5l9koip1
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-pkgz/auth v1.18.1-0.20220131194604-2eb160b3c90c/go.mod h1:QDsgzQg6aYlN9jxd8Hk8Q8nUjPR2L0hp0rcavlGMwrw=
github.com/go-pkgz/auth v1.18.1-0.20220202181615-0642f8d25ee6/go.mod h1:QDsgzQg6aYlN9jxd8Hk8Q8nUjPR2L0hp0rcavlGMwrw=
github.com/go-pkgz/expirable-cache v0.0.3 h1:rTh6qNPp78z0bQE6HDhXBHUwqnV9i09Vm6dksJLXQDc=
github.com/go-pkgz/expirable-cache v0.0.3/go.mod h1:+IauqN00R2FqNRLCLA+X5YljQJrwB179PfiAoMPlTlQ=
github.com/go-pkgz/jrpc v0.2.0 h1:CLy/eZyekjraVrxZV18N2R1mYLMJ/nWrgdfyIOGPY/E=
+1 -1
View File
@@ -11,7 +11,7 @@ require (
github.com/go-chi/chi/v5 v5.0.7
github.com/go-chi/cors v1.2.0
github.com/go-chi/render v1.0.1
github.com/go-pkgz/auth v1.18.1-0.20220131194604-2eb160b3c90c
github.com/go-pkgz/auth v1.18.1-0.20220202181615-0642f8d25ee6
github.com/go-pkgz/jrpc v0.2.0
github.com/go-pkgz/lcw v0.8.1
github.com/go-pkgz/lgr v0.10.4
+2
View File
@@ -130,6 +130,8 @@ github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-pkgz/auth v1.18.1-0.20220131194604-2eb160b3c90c h1:4e/dKZgMUwNBDAfLy749flKJO+RLBhten6uVwj40dyg=
github.com/go-pkgz/auth v1.18.1-0.20220131194604-2eb160b3c90c/go.mod h1:QDsgzQg6aYlN9jxd8Hk8Q8nUjPR2L0hp0rcavlGMwrw=
github.com/go-pkgz/auth v1.18.1-0.20220202181615-0642f8d25ee6 h1:5Iu5+fYbGgbT61SWBQPNiUvsv+eELILfIZtC2TC4y4A=
github.com/go-pkgz/auth v1.18.1-0.20220202181615-0642f8d25ee6/go.mod h1:QDsgzQg6aYlN9jxd8Hk8Q8nUjPR2L0hp0rcavlGMwrw=
github.com/go-pkgz/expirable-cache v0.0.3 h1:rTh6qNPp78z0bQE6HDhXBHUwqnV9i09Vm6dksJLXQDc=
github.com/go-pkgz/expirable-cache v0.0.3/go.mod h1:+IauqN00R2FqNRLCLA+X5YljQJrwB179PfiAoMPlTlQ=
github.com/go-pkgz/jrpc v0.2.0 h1:CLy/eZyekjraVrxZV18N2R1mYLMJ/nWrgdfyIOGPY/E=
+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
+1 -1
View File
@@ -74,7 +74,7 @@ github.com/go-chi/cors
# github.com/go-chi/render v1.0.1
## explicit
github.com/go-chi/render
# github.com/go-pkgz/auth v1.18.1-0.20220131194604-2eb160b3c90c
# github.com/go-pkgz/auth v1.18.1-0.20220202181615-0642f8d25ee6
## explicit
github.com/go-pkgz/auth
github.com/go-pkgz/auth/avatar