Metadata-Version: 1.2
Name: junopass-py
Version: 1.0.4
Summary: JunoPass support for Python.JunoPass provides a secure 2FA and Passwordless authentication.
Home-page: https://github.com/junopass/junopass-py
Author: Felix Cheruiyot
Author-email: felix@junopass.com
License: UNKNOWN
Description: # JunoPass Python Support
        
        Implementation of [JunoPass Authentication](https://developers.junopass.com/junopass-api/authenticating-users) API in Python.
        
        ## Installation
        
            pip install junopass-py --upgrade
        
        ## Get access token and project id
        
            Create an account for access token and project id - https://console.junopass.com
        
        ## How to setup device
        
        **Note the private_key must never be shared.**
        
            from junopass import JunoPass
            
            jp = JunoPass(<Access-Token>, <JunoPass-Public-Key>)
            private_key, public_key = jp.setup_device()
        
        ## Authenticating user - step 1
        
        Submit authentication details to JunoPass. Verify signed challenge hash for authenticity.
        
            method = "EMAIL"
            identifier = "testuser@example.com"
        
            valid_challenge = self.jp.authenticate(method, identifier, pubkey)
        
        ## Verify account using challenge and OTP token - step 2
        Verify OTP message. Send back the user OTP plus a valid challenge obtained in step 1 i.e authenticate function.
        
            resp = self.jp.verify(valid_challenge, device_id, prvtkey, otp=120104)
            print(resp)
        
        ## Run Test
        
            python -m unittest
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Security
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.6
