Replies: 4 comments
-
Could you describe your setup in detail ? How exactly does the login form work ? |
Beta Was this translation helpful? Give feedback.
-
within the webapp, I created a folder called public and within which login2.html with contents
web.xml has the following lines
let me know if you need any further information |
Beta Was this translation helpful? Give feedback.
-
OpenGrok itself does not support authentication. It relies on external mechanism to authenticate the users. It then performs authorization based on the information about the authenticated users in the request. |
Beta Was this translation helpful? Give feedback.
-
closing due to inactivity. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have installed opengrok OpenGrok v1.1.0 rev 0d4f4d3 on tomcat apache-tomcat-9.0.12 with java "1.8.0_172"
I use
<auth-method>FROM</auth-method>
and added the required lines from the documentation to support authentication via LDAP (https://github.com/oracle/opengrok/wiki/Authorization#application-deployment-descriptor)however, I noticed that js files throw an error in the browser when this is done. To come around this, I added more lines in the web.xml as follows
note:- public is the folder where my login form resides
The page now opens okay but now the first attempt to search after the first login on a fresh browser window sends it back to the login page. Subsequent requests work fine.
localhost_access_log file from tomcat shows that after the first login, the js files requests don't hold the user id.
Everything works okay of
<auth-method>BASIC</auth-method>
is used?How do i fix this?
Beta Was this translation helpful? Give feedback.
All reactions