ddcefa47ed
This patch allows to authenticate user with JSON Web Token in the RefStack API. It keeps compatibility with previous method of posting signed results How to generate valid token: > jwt --key="$( cat %path to private key% )" --alg=RS256 user_openid=%openstackid% exp=+100500 How to test auth in API: > curl -k --header "Authorization: Bearer %token%" https://localhost.org/v1/profile Change-Id: I56c88e2fb0ce0e8d6a8b67fba3c2cf25458e1807 |
||
---|---|---|
.. | ||
api | ||
db | ||
tests | ||
__init__.py | ||
opts.py |