3 ~ ============LICENSE_START=======================================================
4 ~ ONAP : ccsdk features
5 ~ ================================================================================
6 ~ Copyright (C) 2021 highstreet technologies GmbH Intellectual Property.
8 ~ ================================================================================
9 ~ Licensed under the Apache License, Version 2.0 (the "License");
10 ~ you may not use this file except in compliance with the License.
11 ~ You may obtain a copy of the License at
13 ~ http://www.apache.org/licenses/LICENSE-2.0
15 ~ Unless required by applicable law or agreed to in writing, software
16 ~ distributed under the License is distributed on an "AS IS" BASIS,
17 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 ~ See the License for the specific language governing permissions and
19 ~ limitations under the License.
20 ~ ============LICENSE_END=======================================================
24 <shiro-configuration xmlns="urn:opendaylight:aaa:app:config">
28 <pair-key>tokenAuthRealm</pair-key>
29 <pair-value>org.onap.ccsdk.features.sdnr.wt.oauthprovider.OAuth2Realm</pair-value>
33 <pair-key>securityManager.realms</pair-key>
34 <pair-value>$tokenAuthRealm</pair-value>
36 <!-- Used to support OAuth2 use case. -->
38 <pair-key>authcBasic</pair-key>
39 <pair-value>org.opendaylight.aaa.shiro.filters.ODLHttpAuthenticationFilter</pair-value>
42 <pair-key>anyroles</pair-key>
43 <pair-value>org.opendaylight.aaa.shiro.filters.AnyRoleHttpAuthenticationFilter</pair-value>
46 <pair-key>authcBearer</pair-key>
47 <pair-value>org.opendaylight.aaa.shiro.filters.ODLHttpAuthenticationFilter2</pair-value>
50 <!-- in order to track AAA challenge attempts -->
52 <pair-key>accountingListener</pair-key>
53 <pair-value>org.opendaylight.aaa.shiro.filters.AuthenticationListener</pair-value>
56 <pair-key>securityManager.authenticator.authenticationListeners</pair-key>
57 <pair-value>$accountingListener</pair-value>
60 <!-- Model based authorization scheme supporting RBAC for REST endpoints -->
62 <pair-key>dynamicAuthorization</pair-key>
63 <pair-value>org.opendaylight.aaa.shiro.realm.MDSALDynamicAuthorizationFilter</pair-value>
68 <pair-key>/**/operations/cluster-admin**</pair-key>
69 <pair-value>authcBearer, roles[admin]</pair-value>
72 <pair-key>/**/v1/**</pair-key>
73 <pair-value>authcBearer, roles[admin]</pair-value>
76 <pair-key>/**/config/aaa*/**</pair-key>
77 <pair-value>authcBearer, roles[admin]</pair-value>
80 <pair-key>/oauth/**</pair-key>
81 <pair-value>anon</pair-value>
84 <pair-key>/odlux/**</pair-key>
85 <pair-value>anon</pair-value>
88 <pair-key>/apidoc/**</pair-key>
89 <pair-value>authcBasic</pair-value>
92 <pair-key>/rests/**</pair-key>
93 <pair-value>authcBearer, anyroles["admin,provision"]</pair-value>
96 <pair-key>/**</pair-key>
97 <pair-value>authcBearer, anyroles["admin,provision"]</pair-value>
99 </shiro-configuration>