Skip to main content

# 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>, <Project-ID>) 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, device_id, login_request = 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. This function also checks the returned response for authenticity.

resp = jp.verify(valid_challenge, device_id, prvtkey, otp=120104) print(resp)

## Run Test

python -m unittest

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.9.tar.gz (3.8 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for junopass-py-1.0.9.tar.gz
Algorithm Hash digest
SHA256 5175bfeb5eca669b6adc34cd15257b891ab32dab1ac1823ab967271519e2486e
MD5 9c779eb5f87e9e9cfcbc4335572dc757
BLAKE2b-256 4bb6d9a8c5217a87e4ed038c03453ea36956b91c50fdebed18b091549b6cb59c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.9 This release

1 file

1.0.8

1 file

1.0.7

1 file

1.0.6

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page