Releases: ahopkins/sanic-jwt
Releases · ahopkins/sanic-jwt
Version 1.1.4 - 2018-08-06
Fixed
- Bug with
_do_protect
in@scoped
decorator
Version 1.1.3 - 2018-08-06
Changed
- Exception handling to consistently have a
exception
andreasons
key reasons
in exception handling to be consistently formatted400
responses fordebug
turned off, and401
when turned on
Fixed
Version 1.1.2 - 2018-06-18
Added
- Ability to send authorization tokens via query string parameters
Version 1.1.1 - 2018-06-14
Changed
- Method of passing rquest object
args
andkwargs
to scope handler
Version 1.1.0 2018-06-03
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
toAuthentication._check_authentication
Authentication.verify
toAuthentication._verify
Authentication.get_access_token
toAuthentication.generate_access_token
Authentication.get_refresh_token
toAuthentication.generate_refresh_token
Authentication.retrieve_scopes
toAuthentication.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
Fixed
- Typo in docs for refresh token page
- Custom endpoints passing parameters to
BaseEndpoint
Version 1.0.1 - 2018-02-27
Added
OPTIONS
handler method forBaseEndpoint
Fixed
- Some tests for claims that were not using UTC timestamps
- Consistency of docs with
class_views
Version 1.0.0
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
v0.31 Add async/await to extenders