Skip to content

Commit 360ac01

Browse files
JIRA WDT-221 add JRF custom identity asserter
1 parent 8d6f788 commit 360ac01

File tree

2 files changed

+28
-6
lines changed

2 files changed

+28
-6
lines changed

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

+9-6
Original file line numberDiff line numberDiff line change
@@ -882,12 +882,15 @@
882882
"version": "[12.1.2,]",
883883
"folders": {},
884884
"attributes": {
885-
"ActiveType": [{"version": "[12.1.2,)", "wlst_mode": "both", "wlst_name": "ActiveType", "wlst_path": "WP001", "value": {"default": "['Authorization']" }, "wlst_type": "list" } ],
886-
"Base64DecodingRequired": [{"version": "[12.1.2,)", "wlst_mode": "both", "wlst_name": "Base64DecodingRequired", "wlst_path": "WP001", "value": {"default": false }, "wlst_type": "boolean", "get_method" : "GET", "access": "RO" } ],
887-
"Description": [{"version": "[12.1.2,)", "wlst_mode": "both", "wlst_name": "Description", "wlst_path": "WP001", "value": {"default": "Trust Service Identity Assertion Provider" }, "wlst_type": "string" } ],
888-
"ProviderClassName": [{"version": "[12.1.2,)", "wlst_mode": "both", "wlst_name": "ProviderClassName", "wlst_path": "WP001", "value": {"default": "oracle.security.jps.wls.providers.trust.TrustServiceAsserterProviderImp" }, "wlst_type": "string", "get_method" : "GET", "access": "RO" } ],
889-
"SupportedTypes": [{"version": "[12.1.2,)", "wlst_mode": "both", "wlst_name": "SupportedTypes", "wlst_path": "WP001", "value": {"default": "['Authorization']" }, "wlst_type": "string", "get_method" : "GET", "access": "RO" } ],
890-
"Version": [{"version": "[12.1.2,)", "wlst_mode": "both", "wlst_name": "Version", "wlst_path": "WP001", "value": {"default": "1.0" }, "wlst_type": "string", "get_method" : "GET", "access": "RO" } ]
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" } ]
891894
},
892895
"wlst_attributes_path": "WP001",
893896
"wlst_paths": {

core/src/test/python/aliases_test.py

+19
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,25 @@ def testSecurityProviderDiscovery(self):
962962
result = self.aliases.requires_artificial_type_subfolder_handling(location)
963963
self.assertEqual(result, True)
964964

965+
token = self.aliases.get_name_token(location)
966+
location.add_name_token(token, 'myprovider')
967+
result = \
968+
self.aliases.get_model_subfolder_name(location,
969+
'oracle.security.jps.wls.providers.trust.TrustServiceIdentityAsserter')
970+
self.assertEqual(result, 'SAMLAuthenticator')
971+
return
972+
973+
def testJrfSecurityProviderDiscovery(self):
974+
location = LocationContext().append_location(FOLDERS.SECURITY_CONFIGURATION)
975+
token = self.aliases.get_name_token(location)
976+
location.add_name_token(token, 'my-domain')
977+
978+
location.append_location(FOLDERS.REALM)
979+
token = self.aliases.get_name_token(location)
980+
location.add_name_token(token, 'myrealm')
981+
982+
location.append_location(FOLDERS.AUTHENTICATION_PROVIDER)
983+
965984
token = self.aliases.get_name_token(location)
966985
location.add_name_token(token, 'myprovider')
967986
result = self.aliases.get_model_subfolder_name(location,

0 commit comments

Comments
 (0)