File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,11 +52,7 @@ component {
5252 // accessTokenEndpoint : "https://www.googleapis.com/oauth2/v4/token",
5353 // redirectUri : getSystemSetting( key = "GOOGLE_REDIRECT_URI", defaultValue = "" )
5454 // }
55- ],
56- cbjavaloader : {
57- loadPaths : [ modulePath & " /lib" ],
58- parentClassLoader : createObject ( " java" , " java.lang.ClassLoader" ).getSystemClassLoader ()
59- }
55+ ]
6056 };
6157
6258 interceptorSettings = { customInterceptionPoints : [ " CBSSOMissingProvider" , " CBSSOAuthorization" ] };
@@ -79,6 +75,8 @@ component {
7975 interceptorName = " cbsso@global"
8076 );
8177 }
78+
79+ wireBox .getInstance ( " loader@cbjavaloader" ).appendPaths ( modulePath & " /lib" );
8280 }
8381
8482 /**
Original file line number Diff line number Diff line change 11{
22 "name" : " cbsso" ,
3- "version" : " 1.0.2 " ,
3+ "version" : " 1.0.3 " ,
44 "location" : " https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/cbsso/@build.version@/cbsso-@build.version@.zip" ,
55 "author" : " Ortus Solutions <info@ortussolutions.com>" ,
66 "homepage" : " https://github.com/coldbox-modules/cbsso" ,
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ component accessors="true" implements="cbsso.models.ISSOIntegrationProvider" {
99 property name = " expectedIssuer" ;
1010
1111 property name = " wirebox" inject = " wirebox" ;
12- property name = " AuthNRequestGenerator" inject = " javaloader:cbsso.opensaml.AuthNRequestGenerator " ;
13- property name = " responseValidator" inject = " javaloader:cbsso.opensaml.AuthResponseValidator " ;
12+ property name = " AuthNRequestGenerator" ;
13+ property name = " responseValidator" ;
1414
1515 variables .name = " Microsoft Entra" ;
1616
@@ -148,4 +148,16 @@ component accessors="true" implements="cbsso.models.ISSOIntegrationProvider" {
148148 )[ 1 ].xmlchildren [ 1 ].xmltext ;
149149 }
150150
151+ private void function initializeOpenSAMLLib (){
152+ if ( ! isNull ( variables .AuthNRequestGenerator ) ){
153+ return ;
154+ }
155+
156+ variables .AuthNRequestGenerator = wirebox .getInstance ( " javaloader:cbsso.opensaml.AuthNRequestGenerator" );
157+ variables .responseValidator = wirebox .getInstance ( " javaloader:cbsso.opensaml.AuthResponseValidator" );
158+ variables .AuthNRequestGenerator .initOpenSAML ();
159+
160+ responseValidator .cacheCerts ( variables .federationMetadataURL );
161+ }
162+
151163}
You can’t perform that action at this time.
0 commit comments