Python library to help manage your Passage application and users
Project description
passage-python
This Python SDK allows for verification of server-side authentication for applications using Passage
Install this package using pip.
pip install passage-identity
Instantiating the Passage Class
Passage has three arguments that can be used for initialization: app_id
, api_key
, and auth_strategy
.
app_id
is the Passage App ID that specifies which app should be authorized. It has no default value and must to be set upon initialization.api_key
is an API key for the Passage app, which can be generated in the 'App Settings' section of the Passage Console. It is an optional parameter and not required for authenticating requests. It is required to get or update user information.- Deprecated
auth_strategy
defines where the Passage SDK should look for the authentication token. It is set by default toPassage.COOKIE_AUTH
, but can be changed toPassage.HEADER_AUTH
.
from passageidentity import Passage
import os
PASSAGE_APP_ID = os.environ.get("PASSAGE_APP_ID")
PASSAGE_API_KEY = os.environ.get("PASSAGE_API_KEY")
psg = Passage(PASSAGE_APP_ID, PASSAGE_API_KEY)
Available Functions
Method | Description |
---|---|
activateUser | Activate User |
deactivateUser | Deactivate User |
deleteUser | Delete User |
deleteUserDevice | Delete User Device |
authenticateRequest | Validates user jwt token |
createMagicLink | Create Embeddable Magic Link |
createUser | Create User |
deleteUserDevice | Delete a device for a user |
getApp | Get App |
getUser | Get User |
listUserDevices | List User Devices |
revokeUserDevice | Deprecated Delete User Device |
revokeUserRefreshTokens | Signout User |
signOut | Deprecated Signout User |
updateUser | Update User |
validateJwt | Validates user jwt token |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
passage-identity-2.2.1.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for passage_identity-2.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a2c0bae552439f75f68d44c77c9d7353a01f20464d45d45519f04e7ead58798 |
|
MD5 | 143bc40436e77322eac1524901a400ad |
|
BLAKE2b-256 | 47e21d9ea49ccb067798f2b542a5b07ad9bde8cbcc88e3a8dc14f1ecdc5f6c63 |