python-keycloak-client
python-keycloak-client copied to clipboard
Add Token class
- Token is a wrapper class for authorization token with the ability to automatically refresh itself.
- Usage is
token(), the raw token can be retrieved withtoken.token.
- Usage is
@Peter-Slump This code was part of #20 but I decided it would be best to polish the code and split it into multiple PR and discuss those changes in these individual PRs, if you are ok with that.
Hi @pehala I've merged your #20 PR to the develop branch since it's breaking the API. In the develop branch I collect all changes which will be released in the 1.0 release. However there is an issue #24 open to verify the Token class since I want to be sure that the verification of the JWT is correct and secure enough for this purpose.