Apache2 OIDC and reverse proxy for tomcat application #1102
Unanswered
aashishagarwal
asked this question in
Q&A
Replies: 1 comment 3 replies
-
You should use a URI path that does NOT contain data or is used by the users or app - e.g. /redirect_uri relative paths are accepted in the conf file. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are trying to integrate Apache2 OIDC with Forgerock .
And we have several java/.net app where requests will be proxied based on the path.
I have tried lot of things but not able to make this work. I am confused about RedirectURI, not sure what that url should be, it should HTTP header 204 (No content) or a not valid URL which doesn't exist.
My config is available below,
Apache
running on 80
Tomcat
running on 8080
context path/test
when I hit
http://host-ip/test
, it goes to forgerock and get authenticated and comes back to redirect urlrequest flow :
GET http://<host-ip>/test
status code 302
GET http://<forgerock> with redirect uri and client id
status code 302
GET - http://<host-ip>/test/callback
status code 200
POST - http://<host-ip>/test/callback
status code 500
There is no real url exist
which can return 200 on http://<host-ip>/test/callback
on tomcat following paths are available :
/test
,/test/hello
,/test/listHeaders
Apache Config
`<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
`
Logs
can someone please help me to understand what's incorrect in this whole flow. What should be my redirectURI in this case.
Beta Was this translation helpful? Give feedback.
All reactions