Skip to content

Commit 586c536

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 6af3f4c + 2a32a7b commit 586c536

File tree

4 files changed

+29
-7
lines changed

4 files changed

+29
-7
lines changed

core/src/main/python/wlsdeploy/aliases/alias_constants.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ def __build_security_provider_data_structures(name_map, base_path):
163163
'SQLAuthenticator': 'weblogic.security.providers.authentication.SQLAuthenticator',
164164
'VirtualUserAuthenticator': 'weblogic.security.providers.authentication.VirtualUserAuthenticator',
165165
'SAMLAuthenticator': 'weblogic.security.providers.saml.SAMLAuthenticator',
166-
'SAMLIdentityAsserterV2': 'weblogic.security.providers.saml.SAMLIdentityAsserterV2'
166+
'SAMLIdentityAsserterV2': 'weblogic.security.providers.saml.SAMLIdentityAsserterV2',
167+
'TrustServiceIdentityAsserter': 'oracle.security.jps.wls.providers.trust.TrustServiceIdentityAsserter',
167168
}
168169

169170
AUTHORIZATION_PROVIDER_NAME_MAP = {

core/src/main/resources/oracle/weblogic/deploy/aliases/category_modules/SecurityConfiguration.json

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"copyright": "Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.",
2+
"copyright": "Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.",
33
"license": "The Universal Permissive License (UPL), Version 1.0",
44
"wlst_type": "SecurityConfiguration",
55
"child_folders_type": "single_unpredictable",
@@ -876,6 +876,27 @@
876876
"WP001": "/SecurityConfiguration/%SEC_CONFIG%/Realm${:s}/%REALM%/AuthenticationProvider${:s}/%PROVIDER%"
877877
}
878878
},
879+
"TrustServiceIdentityAsserter": {
880+
"wlst_type": "oracle.security.jps.wls.providers.trust.TrustServiceIdentityAsserter",
881+
"child_folders_type": "none",
882+
"version": "[12.1.2,]",
883+
"folders": {},
884+
"attributes": {
885+
"ActiveType": [{"version": "[12.1.2,12.2.1)", "wlst_mode": "online", "wlst_name": "ActiveTypes", "wlst_path": "WP001", "value": {"default": "java.lang.String['Authorization']" }, "wlst_type": "list" } ,
886+
{"version": "[12.2.1,)", "wlst_mode": "both", "wlst_name": "ActiveType${:s}", "wlst_path": "WP001", "value": {"default": "${:java.lang.String['Authorization']}" }, "wlst_type": "${delimited_string:list}", "get_method": "${LSA:GET}" } ],
887+
"Base64DecodingRequired": [{"version": "[12.1.2,12.2.1)", "wlst_mode": "online", "wlst_name": "Base64DecodingRequired", "wlst_path": "WP001", "value": {"default": false }, "wlst_type": "boolean", "access": "RO" } ,
888+
{"version": "[12.2.1,)", "wlst_mode": "both", "wlst_name": "Base64DecodingRequired", "wlst_path": "WP001", "value": {"default": "${true:false}" }, "wlst_type": "boolean", "access": "${:RO}" } ],
889+
"CompatibilityObjectName": [{"version": "[12.1.2,)", "wlst_mode": "offline", "wlst_name": "CompatibilityObjectName", "wlst_path": "WP001", "value": {"default": "None" }, "wlst_type": "string" } ],
890+
"Description": [{"version": "[12.1.2,)", "wlst_mode": "online", "wlst_name": "Description", "wlst_path": "WP001", "value": {"default": "Trust Service Identity Assertion Provider" }, "wlst_type": "string", "access": "RO" } ],
891+
"ProviderClassName": [{"version": "[12.1.2,)", "wlst_mode": "online", "wlst_name": "ProviderClassName", "wlst_path": "WP001", "value": {"default": "oracle.security.jps.wls.providers.trust.TrustServiceAsserterProviderImp" }, "wlst_type": "string", "access": "RO" } ],
892+
"SupportedTypes": [{"version": "[12.1.2,)", "wlst_mode": "online", "wlst_name": "SupportedTypes", "wlst_path": "WP001", "value": {"default": "java.lang.String['Authorization']" }, "wlst_type": "list", "get_method" : "GET", "access": "RO" } ],
893+
"Version": [{"version": "[12.1.2,)", "wlst_mode": "online", "wlst_name": "Version", "wlst_path": "WP001", "value": {"default": "1.0" }, "wlst_type": "string", "access": "RO" } ]
894+
},
895+
"wlst_attributes_path": "WP001",
896+
"wlst_paths": {
897+
"WP001": "/SecurityConfiguration/%SEC_CONFIG%/Realm${:s}/%REALM%/AuthenticationProvider${:s}/%PROVIDER%"
898+
}
899+
},
879900
"VirtualUserAuthenticator": {
880901
"wlst_type": "${VirtualUserAuthenticator:weblogic.security.providers.authentication.VirtualUserAuthenticator}",
881902
"child_folders_type": "none",

core/src/test/python/aliases_test.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ def testSecurityProviderGetAttributes(self):
949949
self.assertEquals(model_value, 'MyObjectName')
950950
return
951951

952-
def testSecurityProviderDiscovery(self):
952+
def testJrfSecurityProviderDiscovery(self):
953953
location = LocationContext().append_location(FOLDERS.SECURITY_CONFIGURATION)
954954
token = self.aliases.get_name_token(location)
955955
location.add_name_token(token, 'my-domain')
@@ -959,8 +959,6 @@ def testSecurityProviderDiscovery(self):
959959
location.add_name_token(token, 'myrealm')
960960

961961
location.append_location(FOLDERS.AUTHENTICATION_PROVIDER)
962-
result = self.aliases.requires_artificial_type_subfolder_handling(location)
963-
self.assertEqual(result, True)
964962

965963
token = self.aliases.get_name_token(location)
966964
location.add_name_token(token, 'myprovider')

core/src/test/python/attributes_test.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
33
The Universal Permissive License (UPL), Version 1.0
44
"""
55
import unittest
@@ -65,6 +65,7 @@ def _format(self, key, *args):
6565
def _is_filtered_folder(self, name, location):
6666
result = False
6767

68+
6869
if name == 'Domain':
6970
result = True
7071
elif location.get_folder_path() == '/JDBCSystemResource/JdbcResource/JDBCDriverParams/Properties' and \
@@ -89,7 +90,8 @@ def _is_filtered_folder(self, name, location):
8990
result = True
9091
elif location.get_folder_path() == '/SecurityConfiguration/Realm/Auditor/DefaultAuditor':
9192
result = True
92-
93+
elif location.get_folder_path() == '/SecurityConfiguration/Realm/AuthenticationProvider/TrustServiceIdentityAsserter':
94+
result = True
9395
return result
9496

9597
if __name__ == '__main__':

0 commit comments

Comments
 (0)