File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
UserPlugin/src/opengrok/auth/plugin/decoders Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ In general, it should be possible to increase log level in Tomcat's
17
17
### UserPlugin
18
18
19
19
Has a special property called "fake" that allows to insert custom headers
20
- with the "my -" prefix that would be evaluated instead of the usual SSO headers.
20
+ with the "fake -" prefix that would be evaluated instead of the usual SSO headers.
21
21
22
22
Header insertion can be done e.g. using the Modify headers Firefox plugin.
23
23
Original file line number Diff line number Diff line change 23
23
package opengrok .auth .plugin .decoders ;
24
24
25
25
/**
26
- * Almost like @{code OSSOHeaderDecoder} however uses HTTP headers with
27
- * the "my-" prefix which allows for custom header insertion.
26
+ * Almost like @{code OSSOHeaderDecoder} however uses OSSO HTTP headers with
27
+ * prefix which allows for custom header insertion.
28
28
* This class should therefore only be used for debugging.
29
29
*
30
30
* @author Krystof Tulinger
31
31
*/
32
32
public class FakeOSSOHeaderDecoder extends OSSOHeaderDecoder {
33
33
34
+ private final String PREFIX = "fake-" ;
35
+
34
36
public FakeOSSOHeaderDecoder () {
35
- OSSO_COOKIE_TIMESTAMP_HEADER = "my-osso-cookie-timestamp" ;
36
- OSSO_TIMEOUT_EXCEEDED_HEADER = "my-osso-idle-timeout-exceeded" ;
37
- OSSO_SUBSCRIBER_DN_HEADER = "my-osso-subscriber-dn" ;
38
- OSSO_SUBSCRIBER_HEADER = "my-osso-subscriber" ;
39
- OSSO_USER_DN_HEADER = "my-osso-user-dn" ;
40
- OSSO_USER_GUID_HEADER = "my-osso-user-guid" ;
37
+ OSSO_COOKIE_TIMESTAMP_HEADER = PREFIX + OSSOHeaderDecoder . OSSO_COOKIE_TIMESTAMP_HEADER ;
38
+ OSSO_TIMEOUT_EXCEEDED_HEADER = PREFIX + OSSOHeaderDecoder . OSSO_TIMEOUT_EXCEEDED_HEADER ;
39
+ OSSO_SUBSCRIBER_DN_HEADER = PREFIX + OSSOHeaderDecoder . OSSO_SUBSCRIBER_DN_HEADER ;
40
+ OSSO_SUBSCRIBER_HEADER = PREFIX + OSSOHeaderDecoder . OSSO_SUBSCRIBER_HEADER ;
41
+ OSSO_USER_DN_HEADER = PREFIX + OSSOHeaderDecoder . OSSO_USER_DN_HEADER ;
42
+ OSSO_USER_GUID_HEADER = PREFIX + OSSOHeaderDecoder . OSSO_USER_GUID_HEADER ;
41
43
}
42
44
}
You can’t perform that action at this time.
0 commit comments