-
-
Notifications
You must be signed in to change notification settings - Fork 330
Multiple redirect URIS for different apps #1357
-
Hello!
My PoC is the following:
- Have multiple apps behind an apache server that acts as a reverse proxy
- Have a single client in keycloak with multiple redirect uris
The idea is to use a single client to allow access to multiple apps, thus I need multiple redirect URIs.
I want to do something like:
- I go to pgcorreia.com/app1, after I get authenticated and I am redirected to app1
- I go to pgcorreia.com/app2, after I get authenticated and I am redirected to app2.
However, when I need to define the mod_auth_openidc, the OIDC variables should be enabled at vhost level.
Is ti possible to enable them at location level to have something like this:
<VirtualHost *:443>
OIDCClientID shared-client
OIDCClientSecret shared-secret
<Location /app1>
AuthType openid-connect
Require valid-user
OIDCRedirectURI https://pgcorreia.com/app1/oidc/callback
</Location>
<Location /app2>
AuthType openid-connect
Require valid-user
OIDCRedirectURI https://pgcorreia.com/app2/oidc/callback
</Location>
</VirtualHost>
Many thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions
The idea is to use a single client to allow access to multiple apps, thus I need multiple redirect URIs.
you don't need multiple redirect URIs for a single client to allow access to multiple apps, ,just use a single one e.g. https://pgcorreia.com/oidc/callback
Replies: 1 comment 1 reply
-
The idea is to use a single client to allow access to multiple apps, thus I need multiple redirect URIs.
you don't need multiple redirect URIs for a single client to allow access to multiple apps, ,just use a single one e.g. https://pgcorreia.com/oidc/callback
Beta Was this translation helpful? Give feedback.
All reactions
-
❤️ 1
-
Thx!
Beta Was this translation helpful? Give feedback.