Skip to main content

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

urm_validatetoken-0.0.7.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

urm_validatetoken-0.0.7-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page