All Versions
25
Latest Version
Avg Release Cycle
56 days
Latest Release
160 days ago

Changelog History
Page 3

  • v2.0.0-rc4 Changes

    June 27, 2018

    ๐Ÿ”„ Changed

    • RememberingServerStorer now has context on its methods
  • v2.0.0-rc3 Changes

    May 25, 2018

    ๐Ÿ”„ Changed

    • Recover and Confirm now use split tokens

      The reason for this change is that there's a timing attack possible because of the use of memcmp() by databases to check if the token exists. By using a separate piece of the token as a selector, we use memcmp() in one place, but a crypto constant time compare in the other to check the other value, and this value cannot be leaked by timing, and since you need both to recover/confirm as the user, this attack should now be mitigated.

      This requires users to implement additional fields on the user and rename the Storer methods.

  • v2.0.0-rc2 Changes

    May 14, 2018

    ๐Ÿš€ Mostly rewrote Authboss by changing many of the core interfaces. This release ๐ŸŒ is instrumental in providing better support for integrating with many web frameworks and setups.

    โž• Added

    • โฌ†๏ธ v2 Upgrade guide (tov2.md)

    • ๐Ÿ‘ API/JSON Support

      Because of the new abstractions it's possible to implement body readers, responders, redirectors and renderers that all speak JSON (or anything else for that matter). There are a number of these that exist already in the defaults package.

    ๐Ÿ”„ Changed

    • The core functionality of authboss is now delivered over a set of interfaces

      This change was fairly massive. We've abstracted the HTTP stack completely so that authboss isn't really doing things like issuing template renderings, it's just asking a small interface to do it instead. The reason for doing this was because the previous design was too inflexible and wouldn't integrate nicely with various frameworks etc. The defaults package helps fill in the gaps for typical use cases.

    • Storage is now done by many small interfaces

      It became apparent than the old reflect-based mapping was a horrible solution to passing data back and forth between these structs. So instead we've created a much more verbose (but type safe) set of interfaces to govern which fields we need.

      Now we can check that our structs have the correct methods using variable declarations and there's no more confusion about how various types map back and forth inside the mystical Bind and Unbind methods.

      The downside to this of course is it's incredibly verbose to create a fully featured model, but I think that the benefits outweigh the downsides (see bugs in the past about different types being broken/not supported/not working correctly).

    • ๐Ÿ‘Œ Support for context.Context is now much better

      We had a few pull requests that kind of shoved context.Context support in the sides so that authboss would work in Google App Engine. With this release context is almost everywhere that an external system would be interacted with.

    • Client State management rewritten

      The old method of client state management performed writes too frequently. By using a collection of state change events that are later applied in a single write operation at the end, we make it so we don't get duplicate cookies etc. The bad thing about this is that we have to wrap the ResponseWriter. But there's an UnderlyingResponseWriter interface to deal with this problem.

    • Validation has been broken into smaller and hopefully nicer interfaces

      Validation needs to be handled by the BodyReader's set of returned structs. This punts validation outside of the realm of Authboss for the most part, but there's still helpful tools in the defaults package to help with validation if you're against writing rolling your own.

    • Logout has been broken out into it's own module to avoid duplication inside login/oauth2 since they perform the same function.

    • ๐Ÿ‘ Config is now a nested struct, this helps organize the properties a little better (but I hope you never mouse over the type definition in a code editor).

    โœ‚ Removed

    • Notable removal of AllowInsecureLoginAfterConfirm

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix bug where e-mail with only a textbody would send blank e-mails

    ๐Ÿ—„ Deprecated

    • ๐Ÿ‘‰ Use of gopkg.in, it's no longer a supported method of consuming authboss. Use manual vendoring, dep or vgo.
  • v1.2.1

    July 15, 2019
  • v1.0.0 Changes

    August 02, 2015

    ๐Ÿ”„ Changed

    ๐Ÿ‘ This change is potentially breaking, it did break the sample since the supporting struct was wrong for the data we were using.

    ๐Ÿ”’ Lock: The documentation was updated to reflect that the struct value for AttemptNumber is indeed an int64. Unbind: Previously it would scrape the struct for the supported types (string, int, bool, time.Time, sql.Scanner/driver.Valuer) and make them into a map. Now the field list will contain all types found in the struct. Bind: Before this would only set the supported types (described above), now it attempts to set all values. It does check to ensure the type in the attribute map matches what's in the struct before assignment.