Skip to content

Releases: ahopkins/sanic-jwt

Version 1.1.4 - 2018-08-06

06 Aug 10:53
7888f9a
Compare
Choose a tag to compare

Fixed

  • Bug with _do_protect in @scoped decorator

Version 1.1.3 - 2018-08-06

06 Aug 09:14
bfd4263
Compare
Choose a tag to compare

Changed

  • Exception handling to consistently have a exception and reasons key
  • reasons in exception handling to be consistently formatted
  • 400 responses for debug turned off, and 401 when turned on

Fixed

  • #110. Preflight methods now properly handled
  • #114. Proper use of utils.call to allow for sync and async retrieve_user functions
  • #116. Proper error reporting on malformed tokens
  • #118. Proper error reporting on expired token for /auth/me and /auth/refresh by applying @protected decorators

Version 1.1.2 - 2018-06-18

18 Jun 09:59
2ea96d4
Compare
Choose a tag to compare

Added

  • Ability to send authorization tokens via query string parameters

Version 1.1.1 - 2018-06-14

14 Jun 10:11
facb6f6
Compare
Choose a tag to compare

Changed

  • Method of passing rquest object args and kwargs to scope handler

Version 1.1.0 2018-06-03

02 Jun 22:49
dfe7d6e
Compare
Choose a tag to compare

Added

  • New handler method: override_scope_validator
  • New handler method: destructure_scopes
  • New decorator method: inject_user
  • Decorator methods copied to Initialize class for convenience
  • New convenience method for extracting user_id from request
  • Feature for decoupling authentication mode for microservices
  • Ability to have custom generated refresh tokens
  • Subclasses are tested for consistency on Initialize

Changed

  • Authentication.is_authenticated to Authentication._check_authentication
  • Authentication.verify to Authentication._verify
  • Authentication.get_access_token to Authentication.generate_access_token
  • Authentication.get_refresh_token to Authentication.generate_refresh_token
  • Authentication.retrieve_scopes to Authentication.extract_scopes
  • Method for getting and setting configurations made dynamic

Fixed

  • Verification that a custom payload extender supplies all of the enabled claims
  • abort bug when using Sanic’s convenience method for exceptions

Version 1.0.1 - 2018-03-04

04 Mar 08:19
281b84d
Compare
Choose a tag to compare

Fixed

  • Typo in docs for refresh token page
  • Custom endpoints passing parameters to BaseEndpoint

Version 1.0.1 - 2018-02-27

27 Feb 07:08
9a5fd66
Compare
Choose a tag to compare

Added

  • OPTIONS handler method for BaseEndpoint

Fixed

  • Some tests for claims that were not using UTC timestamps
  • Consistency of docs with class_views

Version 1.0.0

25 Feb 10:33
74141ff
Compare
Choose a tag to compare

Added

  • Initialize class
  • New methods for adding configuration settings
  • Customizable components
  • Customizable responses
  • Ability to fallback to header based authentication if cookie based fails
  • Initialize on a blueprint and isolate configuration

Fixed

  • @protected implementation on class based views
  • Usage of signing algorithms with public and private keys

Deprecated

  • SANIC_JWT_PAYLOAD_HANDLER
  • SANIC_JWT_HANDLER_PAYLOAD_EXTEND
  • SANIC_JWT_HANDLER_PAYLOAD_SCOPES

Add async/await support to Extenders

05 Nov 13:20
Compare
Choose a tag to compare
v0.31

Add async/await to extenders

Scopes

24 Oct 06:32
Compare
Choose a tag to compare
v0.3

Merge branch 'master' of github.com:ahopkins/sanic-jwt