-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for multiple SP's with non-static metadata
- Loading branch information
Showing
14 changed files
with
456 additions
and
102 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,14 @@ | ||
package saml.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class SAMLIdentityProvider { | ||
|
||
private String certificate; | ||
private String privateKey; | ||
private String entityId; | ||
|
||
} |
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,27 @@ | ||
package saml.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import org.opensaml.security.credential.Credential; | ||
|
||
@Getter | ||
public class SAMLServiceProvider { | ||
|
||
private String entityId; | ||
private String metaDataUrl; | ||
private Credential credential; | ||
private String acsLocation; | ||
|
||
public SAMLServiceProvider(String entityId, String metaDataUrl) { | ||
this.entityId = entityId; | ||
this.metaDataUrl = metaDataUrl; | ||
} | ||
|
||
public void setCredential(Credential credential) { | ||
this.credential = credential; | ||
} | ||
|
||
public void setAcsLocation(String acsLocation) { | ||
this.acsLocation = acsLocation; | ||
} | ||
} |
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,27 @@ | ||
package saml; | ||
|
||
import com.github.tomakehurst.wiremock.WireMockServer; | ||
import com.github.tomakehurst.wiremock.client.WireMock; | ||
import org.junit.jupiter.api.extension.AfterEachCallback; | ||
import org.junit.jupiter.api.extension.BeforeEachCallback; | ||
import org.junit.jupiter.api.extension.ExtensionContext; | ||
|
||
public class WireMockExtension extends WireMockServer implements BeforeEachCallback, AfterEachCallback { | ||
|
||
public WireMockExtension(int port) { | ||
super(port); | ||
} | ||
|
||
@Override | ||
public void beforeEach(ExtensionContext context) { | ||
this.start(); | ||
WireMock.configureFor("localhost", port()); | ||
} | ||
|
||
@Override | ||
public void afterEach(ExtensionContext context) { | ||
this.stop(); | ||
this.resetAll(); | ||
} | ||
|
||
} |
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
Oops, something went wrong.