Skip to main content

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

keycloak_srvcloud-0.0.7.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file keycloak_srvcloud-0.0.7.tar.gz.

File metadata

  • Download URL: keycloak_srvcloud-0.0.7.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

Hashes for keycloak_srvcloud-0.0.7.tar.gz
Algorithm Hash digest
SHA256 b0eff2bb64b4fecae7c326a1800d1b8ea11415f8caae20b3fa1f75a9d4728114
MD5 fd32314cd1c8a9ed105ec877cbc02450
BLAKE2b-256 f0dab74e87759ea7bcdd8c755c50b79e47a496917fcbe89ec0f21f8e9ed0b2b0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page