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

Allow configuring multiple OAuth clients in the same realm #53

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

matthias-stone
Copy link

What this does:

Allows different auth portals to use different OAuth clients with the same realm from the same identity provider. See greenpau/caddy-security/issues/307

Why do this:

Currently when multiple sites share an identity provider (eg. Google) with different client IDs they each need to specify a unique realm even though the sites are otherwise unrelated. As the realm forms part of the URL for OAuth callbacks this impacts external configuration as well, requiring clients to allow callbacks to eg. site1.com/oauth/google1, site2.com/oauth/google2, etc. instead of just site1.com/oauth/google, site2.com/oauth/google, etc.. Decoupling the otherwise unrelated configurations simplifies maintenance and set up when using multiple OAuth clients.

What this does not do:

Permit multiple instances of the same identity provider (Google, fb, etc.) within a portal configuration.

How it does this:

Removes requirement for unique realms across all identity providers during initialization.

* Allows configuration of OAuth clients from a given identity provider to be independent
* Does not allow an authentication portal to use multiple clients for a given identity provider
Copy link
Contributor

github-actions bot commented Jan 5, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@matthias-stone
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Jan 5, 2024
@greenpau
Copy link
Owner

@matthias-stone , I will try getting to this issue soon. Would it be possible to do Google Meet so you can show me your setup?

@matthias-stone
Copy link
Author

Sure! Let's set something up.

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

Successfully merging this pull request may close these issues.

None yet

2 participants