urm_validatetoken package contains method validate_token() which takes access_token as input and returns status of the token as valid or invalid.
Project description
Method validate_token() takes four required parameters and returns two values.
syntax: <TOKEN_VALIDATION_STATUS>, <TOKEN_STATUS> = urm_validatetoken.validate_token(<REQUEST_METHOD>,<VALIDATE_TOKEN_URL>,<ACCESS_TOKEN>,<CONTENT_TYPE>).
<REQUEST_METHOD>: POST, PUT, GET, PATCH, etc. <VALIDATE_TOKEN_URL>: url of validate_token api. <ACCESS_TOKEN>: unique access token for authorization. <CONTENT_TYPE>: for ex. application/json. <TOKEN_VALIDATION_STATUS>: validation status description. <TOKEN_STATUS>: it may contain value True or False or status_code(403 or 401).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for urm_validatetoken-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa4962428a21c1198e68c79a0f065fb3a33c99a945e107d91d8f76bd2776accc |
|
MD5 | 578c03b97636a13233a74c801f69115d |
|
BLAKE2b-256 | bbb4dc67db58ffc13bfe957fe4dc2e69ba4181049d3515b2352addab9d3e595b |