Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement an OIDC compatible Authentication flow. #310

Closed
pboers1988 opened this issue Sep 11, 2023 · 0 comments
Closed

Implement an OIDC compatible Authentication flow. #310

pboers1988 opened this issue Sep 11, 2023 · 0 comments

Comments

@pboers1988
Copy link
Contributor

Problem statement
It should be possible to dynamically configure the CNAAS-NMS api and frontend application to be compatible with any OIDC provider. This could be Google, Authy, Facebook, Microsoft and/or SURFconext. Ususally this is done by feeding the application with a .well-known-endpoint that configures the auth(n|z) of your application.

Describe the solution you'd like
Implement the authlib library to configure the api: https://authlib.org/
The dynamic configuration should look something like this

oauth.register(
    "connext",
    server_metadata_url=settings.OIDC_CONF_WELL_KNOWN_URL,
    client_id=settings.OIDC_CLIENT_ID,
    client_secret=settings.OIDC_CLIENT_SECRET,
    client_kwargs={"scope": "openid"},
    response_type="id_token token",
    response_mode="query",
)

The Authlib library provides a mechanism to retrieve tokens and dynamically and download the verification certificates into the application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants