Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Releases: nsarno/knock

[1.4.2] - 2016-01-29

28 Jan 23:39
Compare
Choose a tag to compare

Fixed

  • Allow use of any or no prefix in authorization header.
    This fixes an unwanted breaking change introduced in 1.4.0 forcing the use
    of the Bearer prefix.

[1.4.1] - 2016-01-08

28 Jan 23:39
Compare
Choose a tag to compare

Fixed

  • Use lambda for audience verification

[1.4] - 2016-01-02

28 Jan 23:38
Compare
Choose a tag to compare

Changed

  • Allow use of rails versions above 4.2

Added

  • Travis integration
  • Contribution guidelines
  • URL authentication
  • Allow use of different encoding algorithm
  • Expose current_user in the controllers without authenticating

Fixed

  • Audience verification in token
  • Use lambda syntax compatible with older ruby versions
  • A few typos

[1.3] - 2015-07-23

23 Jul 15:00
Compare
Choose a tag to compare

Added

  • Configuration option for how the current_user is retrieved when signing in.
  • Configuration option for the handle attribute (email by default).

[1.2.0] - 2015-07-16

16 Jul 20:14
Compare
Choose a tag to compare

Added

  • Configuration option for how the current_user is retrieved when validating
    a token. (#1)

Changed

  • Use "sub" claim to store the user id by default instead of "user_id". (#1)

Fixed

  • Decode auth0_client_secret in default configuration for Auth0

[1.1.0] - 2015-07-15

16 Jul 20:08
Compare
Choose a tag to compare

Added

  • Knock.token_lifetime configuration variable
  • Knock.token_secret_signature_key configuration variable
  • Knock.token_audience configuration variable
  • audience claim verification when decoding token
  • Knock.setup method for configuration in knock.rb initializer
  • generator for initializer (rails g knock:install)

[1.0.0] - 2015-07-14

16 Jul 20:05
Compare
Choose a tag to compare

Added

  • Knock::Authenticable to secure endpoints with before_action :authenticate
  • AuthToken model provides JWT encapsulation
  • AuthTokenController provides out of the box sign in implementation