Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Multiple redirect URIS for different apps #1357

Answered by zandbelt
pescador691 asked this question in Q&A
Discussion options

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!

You must be logged in to vote

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

Comment options

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

You must be logged in to vote
1 reply
Comment options

Thx!

Answer selected by pescador691
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /