Skip to content

Commit

Permalink
Change location of java lib
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeers committed Sep 12, 2024
1 parent f2d54f1 commit d0f5e34
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 13 deletions.
4 changes: 1 addition & 3 deletions ModuleConfig.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ component {
this.entryPoint = "/cbsso";

// Dependencies
this.dependencies = [ "hyper", "jwtcfml", "cbjavaloader" ];
this.dependencies = [ "hyper", "jwtcfml" ];

routes = [
{
Expand Down Expand Up @@ -75,8 +75,6 @@ component {
interceptorName = "cbsso@global"
);
}

wireBox.getInstance( "loader@cbjavaloader" ).appendPaths( modulePath & "/lib" );
}

/**
Expand Down
3 changes: 1 addition & 2 deletions box.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"contributors": [ ],
"dependencies": {
"hyper": "^7.2.1",
"jwt-cfml": "^1.2.0",
"cbjavaloader": "^2.1.1+8"
"jwt-cfml": "^1.2.0"
},
"devDependencies": {
"commandbox-cfformat": "*",
Expand Down
6 changes: 3 additions & 3 deletions models/providers/MicrosoftSAMLProvider.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ component accessors="true" implements="cbsso.models.ISSOIntegrationProvider" {
return;
}

variables.AuthNRequestGenerator = wirebox.getInstance( "javaloader:cbsso.opensaml.AuthNRequestGenerator" );
variables.responseValidator = wirebox.getInstance( "javaloader:cbsso.opensaml.AuthResponseValidator" );
variables.AuthNRequestGenerator.initOpenSAML();
variables.AuthNRequestGenerator = createObject( "java", "cbsso.opensaml.AuthNRequestGenerator" );
variables.responseValidator = createObject( "java", "cbsso.opensaml.AuthResponseValidator" );

variables.AuthNRequestGenerator.initOpenSAML();
responseValidator.cacheCerts( variables.federationMetadataURL );
}

Expand Down
5 changes: 3 additions & 2 deletions server-adobe.json → server-adobe21.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name":"oAuth2-adobe",
"name":"cbsso-adobe21",
"app":{
"serverHomeDirectory":".engine/adobe",
"cfengine":"adobe@2023"
"cfengine":"adobe@2021",
"libDirs":"lib"
},
"web":{
"http":{
Expand Down
27 changes: 27 additions & 0 deletions server-adobe23.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name":"cbsso-adobe23",
"app":{
"serverHomeDirectory":".engine/adobe23",
"cfengine":"adobe@2023",
"libDirs":"lib"
},
"web":{
"http":{
"port":"2140"
},
"rewrites":{
"enable":"true"
},
"webroot":"test-harness",
"aliases":{
"/moduleroot/cbSSO":"../"
}
},
"openBrowser":"false",
"cfconfig":{
"file":".cfconfig.json"
},
"scripts":{
"onServerInitialInstall":"cfpm install zip"
}
}
3 changes: 0 additions & 3 deletions test-harness/models/UserService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ component {
public any function createFromSSO( required any ssoEvent, required any provider ){
var a = new User();

writeDump( ssoEvent );
abort;

a.setEmail( ssoEvent.getEmail() )
.setId( ssoEvent.getUserId() );

Expand Down

0 comments on commit d0f5e34

Please sign in to comment.