Knock v1.5 Release Notes

Release Date: 2016-05-29 // almost 8 years ago
  • โž• Added

    • Exception configuration option Knock.not_found_exception_class_name
    • Multiple entity authentication (e.g. User, Admin, etc)
    • Possibility to have permanent tokens
    • โž• Adding config options for exception class
    • ๐Ÿš… Generator for token controller. E.g. rails g knock:token_controller user

    ๐Ÿ”„ Changed

    • ๐Ÿ—„ Deprecated Authenticable#authenticate in favor of Authenticable#authenticate_user
    • ๐Ÿ‘‰ Deprecated use of Knock.current_user_from_token in favor of User.from_token_payload
    • ๐Ÿ—„ Deprecated use of direct route to AuthTokenController in favor of generating a token controller
    • No need to mount the engine in config/routes.rb anymore