Skip to main content

Cyberus Key authenticate library

Project description

Cyberus Key logo

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


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)

Uploaded Source

Built Distribution

cyberuskey-0.0.1-py3-none-any.whl (5.7 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