Protect only login page #851
-
I want to protect only my login page with OpenID Connect (where it will then create a session for the user with an application specific account). Is it possible to accomplish this using the The below parameters in the config file did not seem to work as I was intending. So far, I have only been able to get OpenID Connect to work by using the "/" wildcard location. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
the above should work, assuming that you've used closing tags |
Beta Was this translation helpful? Give feedback.
-
I do have the closing I can see that the $_SERVER['sub'] variable is still set correctly though, so I am not sure why my application is failing to copy that variable to the session to store the logged in user. Not sure why the mod_auth_openidc config file would have any affect on that |
Beta Was this translation helpful? Give feedback.
-
My php error logs are giving errors saying that That is all that makes sense to me from this scenario, since including all pages seems to work correctly. |
Beta Was this translation helpful? Give feedback.
-
I broke out the functions onto another PHP page that I included in the protected section of the mod_auth_openidc config file. Even though the user never sees the redirect to those pages, I guess the way the browser loads them in the background requires that they are protected by mod_auth_openidc in order to get the header information. |
Beta Was this translation helpful? Give feedback.
I broke out the functions onto another PHP page that I included in the protected section of the mod_auth_openidc config file. Even though the user never sees the redirect to those pages, I guess the way the browser loads them in the background requires that they are protected by mod_auth_openidc in order to get the header information.