Open drjova opened 7 years ago
If you see an error related to JWT, make sure you are sending to any protected by require_api_auth endpoint the JWT token in the headers.
JWT
require_api_auth
The token can be generated with two ways:
either jwt()
jwt()
<input type="hidden" name="authorization_code" value="XXX" />
or jwt_token() which will return just the token
jwt_token()
XXX
current_accounts
from invenio_accounts.proxies import current_accounts token = current_accounts.jwt_creation_factory()
By default the request headers to the protected API should include a Bearer Authorization
Authorization: Bearer xxx
If you see an error related to
JWT
, make sure you are sending to any protected byrequire_api_auth
endpoint the JWT token in the headers.The token can be generated with two ways:
either
jwt()
or
jwt_token()
which will return just the tokencurrent_accounts
By default the request headers to the protected API should include a Bearer Authorization