You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I delpoy opengrok with tomcat 9
because my company is only allowed to use oauth or cas to login,
I use cas-client-core-3.6.4.jar and config it in tomcat success
but when I use opengrok UserWhiteListPlugin, it's doesn't work
In logs/catalina.out:
WARNING [http-nio-8080-exec-4] opengrok.auth.plugin.UserWhiteListPlugin.checkWhitelist cannot get opengrok-user-plugin-user attribute
so how can I allow UserWhiteListPlugin to get the login-user?
UserPlugin is expected to grab certain HTTP headers from the request. It depends on the decoder what HTTP headers will be interpreted as login name and login ID. It then converts these headers into internal request properties that are passed to the subsequent authorization plugins that are down the authorization stack. That is why UserPlugin is usually configured with the REQUISITE flag.
I don't know what cas-client-core is and how it performs authentication, that is something you need to figure out yourself. If it can pass the authenticated user information via HTTP headers or put this information into the request object, new UserPlugin decoder can be written to extract these.
This discussion was converted from issue #4043 on September 27, 2022 08:06.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I delpoy opengrok with tomcat 9
because my company is only allowed to use oauth or cas to login,
I use cas-client-core-3.6.4.jar and config it in tomcat success
but when I use opengrok UserWhiteListPlugin, it's doesn't work
In
logs/catalina.out
:so how can I allow
UserWhiteListPlugin
to get the login-user?read-only.xml
:Beta Was this translation helpful? Give feedback.
All reactions