Cyberus Key authenticate library
Project description
How to install
pip install cyberuskey
or you can clone repository and use CyberusKey class directly in your project #Usage Example
from cyberuskey.cyberuskey import CyberusKey
from cyberuskey.exceptions import AuthenticateException
class AuthenticationHandler:
def get(self):
cyberus = CyberusKey(
'CLIENT_ID',
'CLIENT_SECRET',
'REDIRECT_URI')
arguments = self.request.arguments
try:
id_token_data, access_token = cyberus.authorize(arguments)
except AuthenticateException as exc:
self.write(exc.error_description)
self.set_status(401)
raise exc
...
Links
CyberusKey docs: http://loginwithoutpasswords.com/docs/
CyberusKey widget: https://github.com/CyberusLabs/cyberuskey-widget
License
MIT © Cyberus Labs sp. z o.o.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cyberuskey-0.0.1.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cyberuskey-0.0.1.tar.gz.
File metadata
- Download URL: cyberuskey-0.0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
981f7a4a5c9cd02c790bf41c89efa1d5e58a588debf2d1522fbbd1d781c2680b
|
|
| MD5 |
9ff06f45763280eaa648a19e960008fb
|
|
| BLAKE2b-256 |
a9d8c9a2d7421d5383c5f1063fbe5394a1ade4de62e61a34cb047176caef16eb
|
File details
Details for the file cyberuskey-0.0.1-py3-none-any.whl.
File metadata
- Download URL: cyberuskey-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07531fe913d58081955e39de61f39cc1d3ab8f931553197db64092c3772a131e
|
|
| MD5 |
1a3be3d9749debafbf5c5fd9b4197dd0
|
|
| BLAKE2b-256 |
e1ff277bb092c2a84808ee8f5b339a5f626438198c2cdfc21f38b62f443b3797
|