Skip to main content

A facade package used to perform required keycloak actions which will be made available throughout each Orodha service.

Project description

Orodha-Keycloak

This package is a facade interfacing with python-keycloak used by Orodha services in order to make requests to a keycloak server.

Requirements

Along with the requirements in the requirements.txt file, in order for this package to function properly you need to configure keycloak in a certain way.

Here is a tutorial for setting up keycloak clients and service accounts with the keycloak CLI.

The long and short of it is that in order for this package to work you need to set up a keycloak Realm, that has at least one client which you configure to use a confidential access type and secret_key, along with the ability to use service accounts. Once you do this, you have to give you service account the required permissions for

  • creating users
  • deleting users
  • querying users
  • decoding tokens

Description

This package contains one main class, OrodhaKeycloakClient, which can be imported straight from orodha-keycloak. This this class expects the following arguments upon instantiation:

  • server_url: the main url for our keycloak server. example: http://keycloak:{port}/auth/
  • realm_name: The name of the keycloak realm that you want to interfacing with.
  • client_id: The client_id of the keycloak client for your service worker you want to use.

These three are special. in order to create a connection you either have to pass a client_secret_key to the class, or you have to pass a username and a password to the class. If you do not have one of these two choices you will get an error.

  • client_secret_key: Obtained from keycloak, used for connecting securely to the keycloak client.
  • username / password: The username and password of a keycloak user that you want to log in as in order to take actions on the keycloak realm.

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

orodha_keycloak-0.5.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orodha_keycloak-0.5-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file orodha_keycloak-0.5.tar.gz.

File metadata

  • Download URL: orodha_keycloak-0.5.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for orodha_keycloak-0.5.tar.gz
Algorithm Hash digest
SHA256 48970faa3b4172c9e23617bbb6993cd144b8d9fc159520b0dd8c7a3da17103ec
MD5 8747c1eb61f251e7a626a429bd853fbe
BLAKE2b-256 8175be15224d69b70ad7928d189f93e65a1ab4275ce6b4fa072bcdfe4a37884e

See more details on using hashes here.

File details

Details for the file orodha_keycloak-0.5-py3-none-any.whl.

File metadata

  • Download URL: orodha_keycloak-0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for orodha_keycloak-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5c0cd84f0a779b90303642c6c518691ea8464344eb45d3f44647f81d82771604
MD5 401800ee8dd57ed50caad22a42b042bf
BLAKE2b-256 92fc7a31d57b159861e4c797964e673a761322ea7b825b1e468a7ba753322e1d

See more details on using hashes here.

Supported by

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