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
Close
Hashes for keycloak_srvcloud-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43d664f12c4856336d80bffa99cd3f4286039be49f2788439414f061420dd81e |
|
MD5 | 5c6f1b489ab1feea464d4f0b497a0ff4 |
|
BLAKE2b-256 | 0f81c3c5ae1021b98ae0ee5b0abd724d225757c2beac2fa81d8ae29d00623e9f |