Skip to content

Latest commit

 

History

History
79 lines (55 loc) · 3.32 KB

CHANGES.md

File metadata and controls

79 lines (55 loc) · 3.32 KB

gologin Changelog

Notable changes between releases.

Latest

v2.5.0

  • Update Go module dependencies
  • Add a Picture field to the facebook User struct (#150)

v2.4.0

  • Add SameSite field to the oauth2 state CookieConfig (#112)
    • Set SameSiteLaxMode in DefaultCookieConfig and DebugOnlyCookieConfig
  • Raise the MaxAge in DefaultCookieConfig and DebugOnlyCookieConfig
    • Allow 10 min for users to complete the authorization flow
  • Update examples to show sessions with typed values (#123)

v2.3.1

  • Update minimum Go version from v1.17 to v1.18 (#116)
  • Upgrade github.com/google/go-github from non-module version to v48.1.0
  • Update google.golang.org/api, sling, oauth1, and test dependencies (dependabot)

v2.3.0

  • Update google.golang.org/api to v0.22.0 (#40)
    • Google API renamed Userinfoplus to Userinfo

v2.2.0

  • Suffix packages with /v2 to provide Go module support (#37)
    • Module users may import github.com/dghubble/gologin/v2 starting in v2.2.0
    • Non-module users may continue using releases prior to v2.2.0

v2.1.0

  • Add EnterpriseCallbackHandler for GitHub Enterprise (#33)
  • Add email address to Facebook Users (0acc88)
  • Update Facebook API version to v2.9 (0acc88)
  • Fix facebook CallbackHandler to pass Facebook errors (#31)
  • Fix GitHub Users.Get call to accomodate a go-github change (#18)
  • Remove deprecated digits subpackage (#29)

v2.0.0

  • Support for Go 1.7+ standard context
  • Change gologin handlers to be standard http.Handler's
  • Drop requirement for ctxh.NewHandler wrapper
  • Drop dependency on github.com/dghubble/ctxh shim

Migration

  • Update golang.org/x/net/context imports to context
  • Change any ctxh.ContextHandler to a http.Handler. The ctx is passed via the request so the argument is no longer needed.
  • Remove any ctxh.NewHandler(...) wrap. gologin handlers are now standard http.Handler's, conversion is no longer required.
  • Use req.Context() to obtain the request context within handlers.
  • See updated examples

v1.0.1

  • Use base64.RawURLEncoding for StateHandler's state (#14)
  • Fix OAuth1 failure handler's error passing (#13)
  • Improve test automation. Validate with Go 1.6 and 1.7.

v1.0.0

  • Official release using the ContextHandler
  • Support for all OAuth1 and Oauth2 providers
  • Convenience handlers for Google, GitHub, Facebook, Bitbucket, Twitter, Digits, and Tumblr
  • Token login handlers for Twitter and Digits

v0.1.0

  • Initial proof of concept
  • Web login handlers for Google, GitHub, Facebook, Bitbucket, Twitter, Digits, and Tumblr
  • Token login handlers for Twitter and Digits
  • Support for OAuth1 and OAuth2