Skip to main content

endi_oidc_provider

Project description

This is still a work in progress.

Open Id connect provider based on enDI (http://endi.coop).

Only Authorization Code Flow is supported

Getting Started

  • cd <directory containing this file>

  • $VENV/bin/pip install -e .

  • $VENV/bin/initialize_endi_oidc_provider_db development.ini

  • $VENV/bin/pserve development.ini

Authorization handling

Generate a new client’s key :

oidc-manage <config_uri> clientadd --client=<client> --uri=<redirect_uri> --scopes=<scopes> --cert_salt=<cert_salt>

config_uri : Your ini file

client: A label for your client

redirect_uri : The redirect uri has described in the openid connect specifications (The one passed in the Authorize step)

scopes : The scope the application is requesting (at least the openid scope should be provided) e.g: “openid profile”

cert_salt : A salt random key that will be used to encrypt the client secret in the database

After generating both client_id and client_secret. The client app is able to request authentication.

Authorize Endpoint

The client app can call the Authorization url :

https://myoidc_provider.com/oidc/authorize

It allows :

  • Authenticate a user

  • Get an Authorization code in the response

Token url

Called in the background, the Token endpoint is accessible at the following url :

https://myoidc_provider.com/oidc/token

The RFC : https://tools.ietf.org/html/rfc6749#section-2.3.1

Describes Client Password transmission methods.

Supported client auth method :

  • Through request headers : Basic auth tokens are supported

  • Through request POST params : client_id and client_secret keys are then expected

In the response you get :

  • An access token with mandatory informations

  • An id_token JWS encrypted as described in the spec

  • Since we use code flow, the id_token also returns the at_hash access_token identification key

enDI integration

In your enDI’s ini file add the following :

pyramid.includes =
                    ...
                    endi_oidc_provider
                    ...

(That’s for model registration so that the db startup initialize the tables)

And add the following :

endi.includes =
                    ...
                    endi_oidc_provider.plugin
                    ...

That register OIDC client application configuration UI :

  • routes

  • views

  • traversal tree branch

  • template api stuff

  • templates

  • menu entries

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

endi_oidc_provider-6.0.1.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

endi_oidc_provider-6.0.1-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

Details for the file endi_oidc_provider-6.0.1.tar.gz.

File metadata

  • Download URL: endi_oidc_provider-6.0.1.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

File hashes

Hashes for endi_oidc_provider-6.0.1.tar.gz
Algorithm Hash digest
SHA256 0a756721bdb648e92f8989713bf7dec2c146e9ebb703780c6ecd22abd49b5ca7
MD5 d5ae161169bc3f606273f9a2deaa154e
BLAKE2b-256 e196cc8c579bdf7b96bfa2e98e6c21cc45912971e93e018103a63dda9109febb

See more details on using hashes here.

File details

Details for the file endi_oidc_provider-6.0.1-py3-none-any.whl.

File metadata

  • Download URL: endi_oidc_provider-6.0.1-py3-none-any.whl
  • Upload date:
  • Size: 40.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

File hashes

Hashes for endi_oidc_provider-6.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eb33f979fba141ac5f5905b50cd087ac494b3dc904fae3c6646ee1559a20b89c
MD5 78901af1e8652cc354b15939014b381e
BLAKE2b-256 f62e9ea1f6c29289aaab725a5774835e92aab45a45c5a0f1acb5c4b97c967e1c

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