Skip to main content

OpenID Connect client for CAERP

Project description

Pyramid Oidc client library for caerp

python setup.py install

Add a client in your OpenId Authentication (e.g: Keycloak)

To configure your open id connect client in a SSO server like Keycloak.

Host : https://caerp.mycae.coop

Important Create a custom realm (don't use the master realm, you'll face serious security problems : all users would have admin rights on Keycloak)

Add a client

Retrieve the client secret

In the "Credentials" section of the keycloak client view, retrieve the client's secret (you need it to configure caerp)

Configure your client : caerp

In your caerp application's ini file

pyramid.includes = ...
                   caerp_oidc_client.models

Later in the same ini file

endi.authentification_module=caerp_oidc_client

oidc.client_secret=<Secret token from the OIDC server>
oidc.client_id=caerp_client_id
oidc.scope=openid roles
oidc.auth_endpoint_url=<Keycloak auth endpoint url>
oidc.token_endpoint_url=<Keycloak id token endpoint url>
oidc.logout_endpoint_url=<Keycloak logout endpoint url>

Keycloak's url are in the form

https://keycloak/realms/**my custom realm name**/protocol/openid-connect/auth

https://keycloak/realms/**my custom realm name**/protocol/openid-connect/token

https://keycloak/realms/**my custom realm name**/protocol/openid-connect/logout

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

caerp_oidc_client-2024.1.1.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

caerp_oidc_client-2024.1.1-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file caerp_oidc_client-2024.1.1.tar.gz.

File metadata

  • Download URL: caerp_oidc_client-2024.1.1.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for caerp_oidc_client-2024.1.1.tar.gz
Algorithm Hash digest
SHA256 856f26fdc3e79c39b4886eb8e7960e659f29ac7c5f726181e051a7be4dc5f61e
MD5 7751c63a6b6677a186fe9a52b8d1b3ea
BLAKE2b-256 486a87b00189b650c3ee2e7a1fe14cd93f50f980021c9d7202cc971ee5301ade

See more details on using hashes here.

File details

Details for the file caerp_oidc_client-2024.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for caerp_oidc_client-2024.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5dfbcb332d2ff33d43ef2afe9f954f3c40f321956fabff2e2baa5e023a036a55
MD5 a8446712dc34d4de4df57b7fd0438386
BLAKE2b-256 32d8a98a2042aa8729bfc3a9b8711513afad914ef758277746e8af31a9455f9e

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