File tree Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,7 @@ component {
52
52
// accessTokenEndpoint : "https://www.googleapis.com/oauth2/v4/token",
53
53
// redirectUri : getSystemSetting( key = "GOOGLE_REDIRECT_URI", defaultValue = "" )
54
54
// }
55
- ],
56
- cbjavaloader : {
57
- loadPaths : [ modulePath & " /lib" ],
58
- parentClassLoader : createObject ( " java" , " java.lang.ClassLoader" ).getSystemClassLoader ()
59
- }
55
+ ]
60
56
};
61
57
62
58
interceptorSettings = { customInterceptionPoints : [ " CBSSOMissingProvider" , " CBSSOAuthorization" ] };
@@ -79,6 +75,8 @@ component {
79
75
interceptorName = " cbsso@global"
80
76
);
81
77
}
78
+
79
+ wireBox .getInstance ( " loader@cbjavaloader" ).appendPaths ( modulePath & " /lib" );
82
80
}
83
81
84
82
/**
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " cbsso" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"location" :
" https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/cbsso/@build.version@/[email protected] @.zip" ,
5
5
"author" :
" Ortus Solutions <[email protected] >" ,
6
6
"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" {
9
9
property name = " expectedIssuer" ;
10
10
11
11
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" ;
14
14
15
15
variables .name = " Microsoft Entra" ;
16
16
@@ -148,4 +148,16 @@ component accessors="true" implements="cbsso.models.ISSOIntegrationProvider" {
148
148
)[ 1 ].xmlchildren [ 1 ].xmltext ;
149
149
}
150
150
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
+
151
163
}
You can’t perform that action at this time.
0 commit comments