Skip to content

Commit d0f5e34

Browse files
committed
Change location of java lib
1 parent f2d54f1 commit d0f5e34

File tree

6 files changed

+35
-13
lines changed

6 files changed

+35
-13
lines changed

ModuleConfig.cfc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ component {
2020
this.entryPoint = "/cbsso";
2121

2222
// Dependencies
23-
this.dependencies = [ "hyper", "jwtcfml", "cbjavaloader" ];
23+
this.dependencies = [ "hyper", "jwtcfml" ];
2424

2525
routes = [
2626
{
@@ -75,8 +75,6 @@ component {
7575
interceptorName = "cbsso@global"
7676
);
7777
}
78-
79-
wireBox.getInstance( "loader@cbjavaloader" ).appendPaths( modulePath & "/lib" );
8078
}
8179

8280
/**

box.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
"contributors": [ ],
2424
"dependencies": {
2525
"hyper": "^7.2.1",
26-
"jwt-cfml": "^1.2.0",
27-
"cbjavaloader": "^2.1.1+8"
26+
"jwt-cfml": "^1.2.0"
2827
},
2928
"devDependencies": {
3029
"commandbox-cfformat": "*",

models/providers/MicrosoftSAMLProvider.cfc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ component accessors="true" implements="cbsso.models.ISSOIntegrationProvider" {
146146
return;
147147
}
148148

149-
variables.AuthNRequestGenerator = wirebox.getInstance( "javaloader:cbsso.opensaml.AuthNRequestGenerator" );
150-
variables.responseValidator = wirebox.getInstance( "javaloader:cbsso.opensaml.AuthResponseValidator" );
151-
variables.AuthNRequestGenerator.initOpenSAML();
149+
variables.AuthNRequestGenerator = createObject( "java", "cbsso.opensaml.AuthNRequestGenerator" );
150+
variables.responseValidator = createObject( "java", "cbsso.opensaml.AuthResponseValidator" );
152151

152+
variables.AuthNRequestGenerator.initOpenSAML();
153153
responseValidator.cacheCerts( variables.federationMetadataURL );
154154
}
155155

server-adobe.json renamed to server-adobe21.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"name":"oAuth2-adobe",
2+
"name":"cbsso-adobe21",
33
"app":{
44
"serverHomeDirectory":".engine/adobe",
5-
"cfengine":"adobe@2023"
5+
"cfengine":"adobe@2021",
6+
"libDirs":"lib"
67
},
78
"web":{
89
"http":{

server-adobe23.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name":"cbsso-adobe23",
3+
"app":{
4+
"serverHomeDirectory":".engine/adobe23",
5+
"cfengine":"adobe@2023",
6+
"libDirs":"lib"
7+
},
8+
"web":{
9+
"http":{
10+
"port":"2140"
11+
},
12+
"rewrites":{
13+
"enable":"true"
14+
},
15+
"webroot":"test-harness",
16+
"aliases":{
17+
"/moduleroot/cbSSO":"../"
18+
}
19+
},
20+
"openBrowser":"false",
21+
"cfconfig":{
22+
"file":".cfconfig.json"
23+
},
24+
"scripts":{
25+
"onServerInitialInstall":"cfpm install zip"
26+
}
27+
}

test-harness/models/UserService.cfc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ component {
3737
public any function createFromSSO( required any ssoEvent, required any provider ){
3838
var a = new User();
3939

40-
writeDump( ssoEvent );
41-
abort;
42-
4340
a.setEmail( ssoEvent.getEmail() )
4441
.setId( ssoEvent.getUserId() );
4542

0 commit comments

Comments
 (0)