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 hashes)
Built Distribution
Close
Hashes for cyberuskey-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07531fe913d58081955e39de61f39cc1d3ab8f931553197db64092c3772a131e |
|
MD5 | 1a3be3d9749debafbf5c5fd9b4197dd0 |
|
BLAKE2b-256 | e1ff277bb092c2a84808ee8f5b339a5f626438198c2cdfc21f38b62f443b3797 |