Implementation of JunoPass Authentication API for Django.
Create an account for access token and project id - JunoPass Console
Copy paste the JunoPass public key from ther Documentation
pip install djjunopass --upgrade
Installed djjunopass
in installed apps
INSTALLED_APPS = [
..
'djjunopass',
..
]
Update your setting files with the following:
# Authentication
LOGIN_URL = "djjunopass:login"
# Set authentication to default JunoPass for Passwordless support
AUTHENTICATION_BACKENDS = [
"djjunopass.backends.JunoPassBackend",
]
JUNOPASS_PUBLIC_KEY = <JUNOPASS-PUBLIC-KEY>
JUNOPASS_PROJECT_ID = <JUNOPASS-PROJECT-ID>
JUNOPASS_ACCESS_TOKEN = <JUNOPASS_ACCESS_TOKEN>
# Change default cookies settings
JUNOPASS_DEVICE_PRIVATE_KEY_NAME = "JUNOPASS_DEVICE_PRIVATE_KEY"
JUNOPASS_DEVICE_PUBLIC_KEY_NAME = "JUNOPASS_DEVICE_PUBLIC_KEY"