From 47e63471b8432d700739f01a5fac03a979928450 Mon Sep 17 00:00:00 2001 From: demx8as6 Date: Fri, 28 Jan 2022 14:49:04 +0100 Subject: [PATCH] Modify docker-compose configuration - update on ODL shiro configuration (bearer instead of basic) IssueID: OAM-246 Change-Id: I47b29b976c000da38df550fb8f5d6509c06b1feb Signed-off-by: demx8as6 --- solution/integration/smo/oam/docker-compose.yml | 1 + .../smo/oam/sdnr/oauth-aaa-app-config.xml | 99 ++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 solution/integration/smo/oam/sdnr/oauth-aaa-app-config.xml diff --git a/solution/integration/smo/oam/docker-compose.yml b/solution/integration/smo/oam/docker-compose.yml index c73471a..2929fd3 100755 --- a/solution/integration/smo/oam/docker-compose.yml +++ b/solution/integration/smo/oam/docker-compose.yml @@ -66,6 +66,7 @@ services: - IDENTITY_PROVIDER_URL=${IDENTITY_PROVIDER_URL} - SDNC_WEB_URL=https://sdnc-web:${SDNC_WEB_PORT} volumes: + - ./sdnr/oauth-aaa-app-config.xml:/opt/opendaylight/current/system/org/opendaylight/aaa/aaa-shiro/0.13.3/aaa-shiro-0.13.3-aaa-app-config.xml - ./sdnr/oauth-provider.config.json:/opt/opendaylight/etc/oauth-provider.config.json - ./sdnr/devicemanager.properties:/opt/opendaylight/etc/devicemanager.properties - ./sdnr/mountpoint-registrar.properties:/opt/opendaylight/etc/mountpoint-registrar.properties diff --git a/solution/integration/smo/oam/sdnr/oauth-aaa-app-config.xml b/solution/integration/smo/oam/sdnr/oauth-aaa-app-config.xml new file mode 100644 index 0000000..28a79f6 --- /dev/null +++ b/solution/integration/smo/oam/sdnr/oauth-aaa-app-config.xml @@ -0,0 +1,99 @@ + + + + + + +
+ tokenAuthRealm + org.onap.ccsdk.features.sdnr.wt.oauthprovider.OAuth2Realm +
+ +
+ securityManager.realms + $tokenAuthRealm +
+ +
+ authcBasic + org.opendaylight.aaa.shiro.filters.ODLHttpAuthenticationFilter +
+
+ anyroles + org.opendaylight.aaa.shiro.filters.AnyRoleHttpAuthenticationFilter +
+
+ authcBearer + org.opendaylight.aaa.shiro.filters.ODLHttpAuthenticationFilter2 +
+ + +
+ accountingListener + org.opendaylight.aaa.shiro.filters.AuthenticationListener +
+
+ securityManager.authenticator.authenticationListeners + $accountingListener +
+ + +
+ dynamicAuthorization + org.opendaylight.aaa.shiro.realm.MDSALDynamicAuthorizationFilter +
+ + + + /**/operations/cluster-admin** + authcBearer, roles[admin] + + + /**/v1/** + authcBearer, roles[admin] + + + /**/config/aaa*/** + authcBearer, roles[admin] + + + /oauth/** + anon + + + /odlux/** + anon + + + /apidoc/** + authcBasic + + + /rests/** + authcBearer, anyroles["admin,provision"] + + + /** + authcBearer, anyroles["admin,provision"] + +
-- 2.16.6