Lib for interacting with keycloak from srvCloud
Project description
srvCloud-keycloak Library
What is this?
The module allows you to work with keycloak
Using
Using the library is as simple and convenient as possible:
Let's import it first:
First, import everything from the library (use the from keycloak_srvcloud import Keycloak construct).
Examples of all operations:
Init class:
keycloak = Keycloack(keycloak_host, keycloak_port, realm_name, client_id, client_secret)
Init session:
cookies = keycloak.auth('user', 'password')
Refresh token:
cookies = keycloak.refresh_token(cookies['access_token'], cookies['refresh_token'])
Close session:
keycloak.logout(cookies['access_token'], cookies['refresh_token'])
Get introspect:
introspect = keycloak.introspect(cookies['access_token'])
Developer
Viktor Podlevski
My site: github
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file keycloak_srvcloud-0.0.1.tar.gz.
File metadata
- Download URL: keycloak_srvcloud-0.0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b295d62c6307a95acf6a09ee829e67a4b91ee1aaf9b58ea1687b172c52c19b6
|
|
| MD5 |
6e9222e172171272871ff892146016e2
|
|
| BLAKE2b-256 |
b45b7637a202cf9faec274bab7dabb4c5b97a6423fca8e73c5987e56667a3410
|
File details
Details for the file keycloak_srvcloud-0.0.1-py3-none-any.whl.
File metadata
- Download URL: keycloak_srvcloud-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43d664f12c4856336d80bffa99cd3f4286039be49f2788439414f061420dd81e
|
|
| MD5 |
5c6f1b489ab1feea464d4f0b497a0ff4
|
|
| BLAKE2b-256 |
0f81c3c5ae1021b98ae0ee5b0abd724d225757c2beac2fa81d8ae29d00623e9f
|