sanic-jwt

Authentication, JWT, and permission scoping for Sanic

MIT License

Downloads
84.8K
Stars
242
sanic-jwt - Version 1.8.0 Latest Release

Published by ahopkins over 2 years ago

sanic-jwt - Version 1.7.0

Published by ahopkins about 3 years ago

Added

  • #213 Add samesite cookie option
  • #214 Compat with Sanic 21.3+
  • #189, #217 Documentation updates
sanic-jwt - Version 1.6.0

Published by ahopkins almost 4 years ago

Added

  • Upgrade PyJWT to v2 and add support
sanic-jwt - Version 1.4.1 - 2020-05-03

Published by ahopkins over 4 years ago

sanic-jwt - Version 1.3.2 - 2019-05-19

Published by ahopkins over 5 years ago

Added

  • Instant configuration into scoped decorator for inline config changes outside of protected.
sanic-jwt - Version 1.3.1 - 2019-04-25

Published by ahopkins over 5 years ago

Added

  • Support for False and None scopes.

Changed

  • Use request.args instead of request.query_args to resolve Depracation Warning.
sanic-jwt - Version 1.3.0 - 2019-04-24

Published by ahopkins over 5 years ago

Added

  • #40. Page redirection for static page protection
  • Support to be able to individually protect class-based view methods without the decorators property
sanic-jwt - Version 1.2.2 - 2019-03-14

Published by ahopkins over 5 years ago

Changed

  • #148. Exception message on refresh token intialization

Fixed

  • #147. protected decorator properly applied to built in views when initialized on a blueprint
sanic-jwt - Version 1.2.1 - 2018-12-04

Published by ahopkins almost 6 years ago

Fixed

  • #144 Security bug resolved on empty tokens
sanic-jwt - Version 1.2.0 - 2018-11-08

Published by ahopkins almost 6 years ago

Added

  • Custom claims
  • Extra payload validation
  • Configuration option: SANIC_JWT_DO_PROTECTION

Changed

  • Invalid tokens now 401 instead of 403
sanic-jwt - Version 1.1.4 - 2018-08-06

Published by ahopkins about 6 years ago

Fixed

  • Bug with _do_protect in @scoped decorator
sanic-jwt - Version 1.1.3 - 2018-08-06

Published by ahopkins about 6 years ago

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
sanic-jwt - Version 1.1.2 - 2018-06-18

Published by ahopkins over 6 years ago

Added

  • Ability to send authorization tokens via query string parameters
sanic-jwt - Version 1.1.1 - 2018-06-14

Published by ahopkins over 6 years ago

Changed

  • Method of passing rquest object args and kwargs to scope handler
sanic-jwt - Version 1.1.0 2018-06-03

Published by ahopkins over 6 years ago

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
sanic-jwt - Version 1.0.1 - 2018-03-04

Published by ahopkins over 6 years ago

Fixed

  • Typo in docs for refresh token page
  • Custom endpoints passing parameters to BaseEndpoint
sanic-jwt - Version 1.0.1 - 2018-02-27

Published by ahopkins over 6 years ago

Added

  • OPTIONS handler method for BaseEndpoint

Fixed

  • Some tests for claims that were not using UTC timestamps
  • Consistency of docs with class_views
sanic-jwt - Version 1.0.0

Published by ahopkins over 6 years ago

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
sanic-jwt - Add async/await support to Extenders

Published by ahopkins almost 7 years ago

sanic-jwt - Scopes

Published by ahopkins about 7 years ago