Skip to main content

JunoPass support for Python.JunoPass provides a secure 2FA and Passwordless authentication.

Project 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

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

junopass-py-1.0.3.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file junopass-py-1.0.3.tar.gz.

File metadata

  • Download URL: junopass-py-1.0.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for junopass-py-1.0.3.tar.gz
Algorithm Hash digest
SHA256 476f9c80ce022e3f4b1e6d3fdcfdcbb2ef665e6bd4935b636bfc40092c1d96e5
MD5 1eb50b20fe7a48cf6baddca8700dee1a
BLAKE2b-256 40821545fbe9a72f5840b20c23ebea1591121beafc131cf28052585fd49f4c8d

See more details on using hashes here.

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