Skip to content

Commit

Permalink
Publish 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hzlmn committed Mar 28, 2018
1 parent 2d34691 commit 3706e68
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
29 changes: 23 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
- [0.0.1] Initial release

*Additions*
- [0.1.0]

* Introduced [check_permissions](https://github.com/hzlmn/aiohttp-jwt/blob/master/aiohttp_jwt/decorators.py#L22-L48) decorator for providing [scope based](https://tools.ietf.org/html/rfc6749#section-3.3) permission model for your application handlers.
*Additions*

* Added [support](https://github.com/hzlmn/aiohttp-jwt/commit/59fce065af9f29c32a7ba8e07e963cc294c2734c) for checking revoked tokens

Permissions should be described as an array of strings inside the JWT token, or as a space-delimited OAuth 2.0 Access Token Scope string.
Now users can pass `is_revoked` callback that should return bool value that indicates token status and in case of True, middleware will raise HTTPForbidden with `Token is revoked` message.

*Misc*

* Better description for token decoding error.

* Added more usage [examples](https://github.com/hzlmn/aiohttp-jwt/pull/12). Thanks @vikitikitavi

* Introduced [JWT](https://jwt.io/) middleware for encoding/verifying your JWT token and setting property on [aiohttp.Request](https://docs.aiohttp.org/en/stable/web_reference.html#request-and-base-request) object.

- [0.0.2]

Expand All @@ -23,3 +28,15 @@
*Misc*

* Improved overall code test coverage.


- [0.0.1] Initial release

*Additions*

* Introduced [check_permissions](https://github.com/hzlmn/aiohttp-jwt/blob/master/aiohttp_jwt/decorators.py#L22-L48) decorator for providing [scope based](https://tools.ietf.org/html/rfc6749#section-3.3) permission model for your application handlers.

Permissions should be described as an array of strings inside the JWT token, or as a space-delimited OAuth 2.0 Access Token Scope string.

* Introduced [JWT](https://jwt.io/) middleware for encoding/verifying your JWT token and setting property on [aiohttp.Request](https://docs.aiohttp.org/en/stable/web_reference.html#request-and-base-request) object.

3 changes: 2 additions & 1 deletion aiohttp_jwt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

__version__ = '0.0.2'
__version__ = '0.1.0'

from .middleware import JWTMiddleware
from .permissions import (
check_permissions,
Expand Down

0 comments on commit 3706e68

Please sign in to comment.