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

caerp.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.2.0.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

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

caerp_oidc_client-2024.2.0-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: caerp_oidc_client-2024.2.0.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for caerp_oidc_client-2024.2.0.tar.gz
Algorithm Hash digest
SHA256 8727523606c97d658eb7ff3f5e2d8aeaf1e24491768b3f5cf36f9351b6b7265b
MD5 b817ab6d0066aa502ff6979d314f47d5
BLAKE2b-256 fec75fd936ea2d23389f57cbd1828a524f82e9d9297f6797a1be7c2b29ac1bba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for caerp_oidc_client-2024.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c013891e4993b37d1e587ab8995d3eb7e0a546a0320123eaca9a8b0150a74868
MD5 a73f9150398e7a52437b00e301d2b9bf
BLAKE2b-256 eb848762873a739fee322b4f4ec841bc131f6cf6128d24d4f0b906cc3f0ba4f4

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