Allow securiting asynchronous endpoints 60/89860/11
authorLukas Baca <lbaca@luminanetworks.com>
Mon, 18 May 2020 22:02:13 +0000 (00:02 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 7 Jul 2020 11:07:54 +0000 (13:07 +0200)
commit283c60d984fefdf5fdd6c36cbe494f59d3aae830
tree203deeeda87e3842c0d11f73840b55c7de65cc13
parente129ffe953c5688c04878e1d3dc81cdfb4164d4c
Allow securiting asynchronous endpoints

We need the possibility to allow async requests by AAA because SSE
(Server Sent Events) use async communication.

Previous behavior is set as default. New behavior is possible set by
new parameter in FilterDetails and ServletDetails. These are also
covered by an explicit test suite.

ShiroWebContextSecurer is also updated to take advantage of this
new capability.

JIRA: AAA-199
Change-Id: I83d579bbe33cfeb33f44150ecbe3619654bebe36
Signed-off-by: Lukas Baca <lbaca@luminanetworks.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/shiro/web/env/ShiroWebContextSecurer.java
web/api/src/main/java/org/opendaylight/aaa/web/FilterDetails.java
web/api/src/main/java/org/opendaylight/aaa/web/ServletDetails.java
web/api/src/main/java/org/opendaylight/aaa/web/WebContextSecurer.java
web/api/src/test/java/org/opendaylight/aaa/web/tests/FilterDetailsTest.java [new file with mode: 0644]
web/api/src/test/java/org/opendaylight/aaa/web/tests/ServletDetailsTest.java [new file with mode: 0644]
web/impl-osgi/src/main/java/org/opendaylight/aaa/web/osgi/PaxWebServer.java
web/testutils/src/main/java/org/opendaylight/aaa/web/testutils/WebTestModule.java