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
File details
Details for the file keycloak_srvcloud-0.0.3.tar.gz
.
File metadata
- Download URL: keycloak_srvcloud-0.0.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 812005a288a7cf03e9dd3bb1a7aaf65ee954dda04ebe93550522f9c2f1e7eea8 |
|
MD5 | 790de6eeef7f80332f0f24bf42fc8058 |
|
BLAKE2b-256 | 35c92236dbbc14540ec7ef672d70088781ee38ff8730ceca10434dc154a32fef |