gate
gate copied to clipboard
Update Dependencies
Hi typester,
Recently golang.org/x/oauth2 and github.com/martini-contrib/oauth2 updated without compatibility. Now gate does not work latest dependent libraries. This PR will fix this issue.
Changes:
- change from golang.org/x/oauth2.Options to golang.org/x/oauth2.Config
- request https://www.googleapis.com/oauth2/v3/userinfo (get url from openid-configuration) to get email (avoid to use old oauth2.Token.ExtraData())