Create Filter for jetty Request 29/113029/18
authorPeter Suna <peter.suna@pantheon.tech>
Wed, 7 Aug 2024 11:53:21 +0000 (13:53 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Nov 2024 20:43:08 +0000 (21:43 +0100)
commit3677b849a6a9005be4698eccc09d352a57f426a0
tree3a04f810bbb9e63fab9bd4cf723992817db3e2f9
parent6ef12ddbbd5bd07b686b42a5c717a5d82725998d
Create Filter for jetty Request

The Authentication field is set to UNAUTHENTICATED because
the PaxWebServletHandler could not set this field due to
the missing remote.user attribute.

To resolve this create custom aaa filter
JettyAuthenticationLogFilter.
This filter sets the Authentication field with the user from
Basic authorization to ensure the correct name is printed
in the NCSA logs.

To enable this filter is required to activate it in Karaf console:
scr:enable org.opendaylight.aaa.filter.JettyAuthenticationLogFilter

Or activate it through configuration file:
`etc/org.opendaylight.aaa.filterchain.cfg`:

customFilterList=org.opendaylight.aaa.filter
.JettyAuthenticationLogFilter

JIRA: AAA-282
Change-Id: I26c1975ab30f0e57f0c57519d4cc1cc0becdc826
Signed-off-by: Peter Suna <peter.suna@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
aaa-jetty-auth-log-filter/pom.xml [new file with mode: 0644]
aaa-jetty-auth-log-filter/src/main/java/org/opendaylight/aaa/filter/JettyAuthenticationLogFilter.java [new file with mode: 0644]
aaa-jetty-auth-log-filter/src/test/java/org/opendaylight/aaa/filter/JettyAuthenticationLogFilterTest.java [new file with mode: 0644]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/shiro/principal/ODLPrincipalImpl.java
artifacts/pom.xml
dependency-check/pom.xml
docs/pom.xml
features/odl-aaa-shiro/pom.xml
pom.xml