Inject WebEnvironment into ODLAuthenticator 92/102092/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 16 Aug 2022 15:52:48 +0000 (17:52 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 16 Aug 2022 16:21:01 +0000 (18:21 +0200)
commit8e16693d3f4e04780e9a93c5d8bd9009ee695f61
tree6aacee40d234b497cd3c7768c2a26d7c841fa369
parent319501d6ecf0fb5d51435174c376a20ccc691d78
Inject WebEnvironment into ODLAuthenticator

With the rework done in AAA-225 we no longer inject SecurityManager into
static contexts nor the WebEnvironment into the external web server.
This leads to SecurityUtils.getSubject() not being able to allocate a
subject -- and hence not working at all.

Rather than relying on static contexts, make sure we talk to the
WebEnvironment we create and use its SecurityManager to create subjects.

JIRA: AAA-215
Change-Id: I8ccc4411e31ab6b392a4be8211621fd940516935
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/authenticator/ODLAuthenticator.java
aaa-shiro/impl/src/main/resources/OSGI-INF/blueprint/impl-blueprint.xml