-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
271 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.casinthecloud.simpletest; | ||
|
||
public class MainAll { | ||
|
||
public static void main(final String... args) throws Exception { | ||
MainCAS.main(args); | ||
MainOIDC.main(args); | ||
MainSAML.main(args); | ||
|
||
MainCASDelegateCAS.main(args); | ||
MainCASDelegateOIDC.main(args); | ||
MainCASDelegateSAML.main(args); | ||
|
||
MainOIDCDelegateCAS.main(args); | ||
MainOIDCDelegateOIDC.main(args); | ||
MainOIDCDelegateSAML.main(args); | ||
|
||
MainSAMLDelegateCAS.main(args); | ||
MainSAMLDelegateOIDC.main(args); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/test/java/com/casinthecloud/simpletest/MainCASDelegateCAS.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.casinthecloud.simpletest; | ||
|
||
import com.casinthecloud.simpletest.cas.CasDelegate; | ||
import com.casinthecloud.simpletest.cas.CasLogin; | ||
import com.casinthecloud.simpletest.cas.CasValidate; | ||
import com.casinthecloud.simpletest.execution.Execution; | ||
import lombok.val; | ||
|
||
import static com.casinthecloud.simpletest.util.Utils.AND; | ||
|
||
public class MainCASDelegateCAS { | ||
|
||
public static void main(final String... args) throws Exception { | ||
new Execution(() -> { | ||
val login = new CasDelegate(2, "CasClient", new CasLogin()); | ||
login.setCasPrefixUrl("http://oidc-server:8080/cas"); | ||
val validate = new CasValidate(); | ||
validate.setCasPrefixUrl(login.getCasPrefixUrl()); | ||
return AND(login, validate); | ||
}).launch(); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/test/java/com/casinthecloud/simpletest/MainCASDelegateOIDC.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.casinthecloud.simpletest; | ||
|
||
import com.casinthecloud.simpletest.cas.CasDelegate; | ||
import com.casinthecloud.simpletest.cas.CasOIDCLogin; | ||
import com.casinthecloud.simpletest.cas.CasValidate; | ||
import com.casinthecloud.simpletest.execution.Execution; | ||
import lombok.val; | ||
|
||
import static com.casinthecloud.simpletest.util.Utils.AND; | ||
|
||
public class MainCASDelegateOIDC { | ||
|
||
public static void main(final String... args) throws Exception { | ||
new Execution(() -> { | ||
val login = new CasDelegate(2, "OidcClient", new CasOIDCLogin()); | ||
login.setCasPrefixUrl("http://oidc-server:8080/cas"); | ||
val validate = new CasValidate(); | ||
validate.setCasPrefixUrl(login.getCasPrefixUrl()); | ||
return AND(login, validate); | ||
}).launch(); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/test/java/com/casinthecloud/simpletest/MainCASDelegateSAML.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.casinthecloud.simpletest; | ||
|
||
import com.casinthecloud.simpletest.cas.CasDelegate; | ||
import com.casinthecloud.simpletest.cas.CasSAML2Login; | ||
import com.casinthecloud.simpletest.cas.CasValidate; | ||
import com.casinthecloud.simpletest.execution.Execution; | ||
import lombok.val; | ||
|
||
import static com.casinthecloud.simpletest.util.Utils.AND; | ||
|
||
public class MainCASDelegateSAML { | ||
|
||
public static void main(final String... args) throws Exception { | ||
new Execution(() -> { | ||
val login = new CasDelegate(1, "SAML2Client", new CasSAML2Login()); | ||
login.setCasPrefixUrl("http://oidc-server:8080/cas"); | ||
val validate = new CasValidate(); | ||
validate.setCasPrefixUrl(login.getCasPrefixUrl()); | ||
return AND(login, validate); | ||
}).launch(); | ||
} | ||
} |
16 changes: 7 additions & 9 deletions
16
...asinthecloud/simpletest/MainDelegate.java → ...cloud/simpletest/MainOIDCDelegateCAS.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
package com.casinthecloud.simpletest; | ||
|
||
import com.casinthecloud.simpletest.cas.CasDelegate; | ||
import com.casinthecloud.simpletest.cas.CasLogin; | ||
import com.casinthecloud.simpletest.cas.CasOIDCLogin; | ||
import com.casinthecloud.simpletest.cas.CasSAML2Login; | ||
import com.casinthecloud.simpletest.cas.CasOIDCValidateOC; | ||
import com.casinthecloud.simpletest.execution.Execution; | ||
import lombok.val; | ||
|
||
public class MainDelegate { | ||
import static com.casinthecloud.simpletest.util.Utils.AND; | ||
|
||
public class MainOIDCDelegateCAS { | ||
|
||
public static void main(final String... args) throws Exception { | ||
/*new Execution(() -> { | ||
val login = new CasOIDCLogin(new CasDelegate("OidcClient", new CasOIDCLogin())); | ||
new Execution(() -> { | ||
val login = new CasOIDCLogin(new CasDelegate(2, "CasClient", new CasLogin())); | ||
login.setCasPrefixUrl("http://oidc-server:8080/cas"); | ||
val validate = new CasOIDCValidateOC(); | ||
validate.setCasPrefixUrl(login.getCasPrefixUrl()); | ||
return AND(login, validate); | ||
}).launch();*/ | ||
new Execution(() -> { | ||
val login = new CasOIDCLogin(new CasDelegate("OidcClient", new CasSAML2Login())); | ||
login.setCasPrefixUrl("http://oidc-server:8080/cas"); | ||
return login; | ||
}).launch(); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/test/java/com/casinthecloud/simpletest/MainOIDCDelegateOIDC.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.casinthecloud.simpletest; | ||
|
||
import com.casinthecloud.simpletest.cas.CasDelegate; | ||
import com.casinthecloud.simpletest.cas.CasOIDCLogin; | ||
import com.casinthecloud.simpletest.cas.CasOIDCValidateOC; | ||
import com.casinthecloud.simpletest.execution.Execution; | ||
import lombok.val; | ||
|
||
import static com.casinthecloud.simpletest.util.Utils.AND; | ||
|
||
public class MainOIDCDelegateOIDC { | ||
|
||
public static void main(final String... args) throws Exception { | ||
new Execution(() -> { | ||
val login = new CasOIDCLogin(new CasDelegate(2, "OidcClient", new CasOIDCLogin())); | ||
login.setCasPrefixUrl("http://oidc-server:8080/cas"); | ||
val validate = new CasOIDCValidateOC(); | ||
validate.setCasPrefixUrl(login.getCasPrefixUrl()); | ||
return AND(login, validate); | ||
}).launch(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/test/java/com/casinthecloud/simpletest/MainOIDCDelegateSAML.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.casinthecloud.simpletest; | ||
|
||
import com.casinthecloud.simpletest.cas.CasDelegate; | ||
import com.casinthecloud.simpletest.cas.CasOIDCLogin; | ||
import com.casinthecloud.simpletest.cas.CasSAML2Login; | ||
import com.casinthecloud.simpletest.execution.Execution; | ||
import lombok.val; | ||
|
||
public class MainOIDCDelegateSAML { | ||
|
||
public static void main(final String... args) throws Exception { | ||
new Execution(() -> { | ||
val login = new CasOIDCLogin(new CasDelegate(1, "SAML2Client", new CasSAML2Login())); | ||
login.setCasPrefixUrl("http://oidc-server:8080/cas"); | ||
return login; | ||
}).launch(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.casinthecloud.simpletest; | ||
|
||
import com.casinthecloud.simpletest.cas.CasSAML2Login; | ||
import com.casinthecloud.simpletest.execution.Execution; | ||
import lombok.val; | ||
|
||
public class MainSAML { | ||
|
||
public static void main(final String... args) throws Exception { | ||
new Execution(() -> { | ||
val login = new CasSAML2Login(); | ||
login.setCasPrefixUrl("http://oidc-server:8080/cas"); | ||
return login; | ||
}).launch(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/test/java/com/casinthecloud/simpletest/MainSAMLDelegateCAS.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.casinthecloud.simpletest; | ||
|
||
import com.casinthecloud.simpletest.cas.CasDelegate; | ||
import com.casinthecloud.simpletest.cas.CasLogin; | ||
import com.casinthecloud.simpletest.cas.CasSAML2Login; | ||
import com.casinthecloud.simpletest.execution.Execution; | ||
import lombok.val; | ||
|
||
public class MainSAMLDelegateCAS { | ||
|
||
public static void main(final String... args) throws Exception { | ||
new Execution(() -> { | ||
val login = new CasSAML2Login(new CasDelegate(2, "CasClient", new CasLogin())); | ||
login.setCasPrefixUrl("http://oidc-server:8080/cas"); | ||
return login; | ||
}).launch(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/test/java/com/casinthecloud/simpletest/MainSAMLDelegateOIDC.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.casinthecloud.simpletest; | ||
|
||
import com.casinthecloud.simpletest.cas.CasDelegate; | ||
import com.casinthecloud.simpletest.cas.CasOIDCLogin; | ||
import com.casinthecloud.simpletest.cas.CasSAML2Login; | ||
import com.casinthecloud.simpletest.execution.Execution; | ||
import lombok.val; | ||
|
||
public class MainSAMLDelegateOIDC { | ||
|
||
public static void main(final String... args) throws Exception { | ||
new Execution(() -> { | ||
val login = new CasSAML2Login(new CasDelegate(2, "OidcClient", new CasOIDCLogin())); | ||
login.setCasPrefixUrl("http://oidc-server:8080/cas"); | ||
return login; | ||
}).launch(); | ||
} | ||
} |
Oops, something went wrong.