Sanic-jwt

Latest version: v1.8.0

Safety actively analyzes 629678 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

1.1.2

**Added**
- Ability to send authorization tokens via query string parameters

1.1.1

**Changed**
- Method of passing rquest object ``args`` and ``kwargs`` to scope handler

1.1.0

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

1.0.2

**Fixed**
- Typo in docs for refresh token page
- Custom endpoints passing parameters to `BaseEndpoint`

1.0.1

**Added**
- `OPTIONS` handler method for `BaseEndpoint`

**Fixed**
- Some tests for claims that were not using UTC timestamps
- Consistency of docs with `class_views`

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`

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.