-
Notifications
You must be signed in to change notification settings - Fork 827
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: saml sp metadata field - signing cert
- also: refactor the UAA config used in mock mvc tests (/uaa/src/test/resources/integration_test_properties.yml) from the deprecated saml key fields (eg: login.serviceProviderKey) to the new ones (eg: login.saml.keys), so that we test for the new fields. - also fix the api docs test so that it now correctly marks the retrieve id zones response's `config.samlConfig.certificate` as optional (this field is only returned if you use the deprecated saml key config fields) [#186986697] Co-authored-by: Duane May <duane.may@broadcom.com>
- Loading branch information
1 parent
84e2189
commit e4be388
Showing
5 changed files
with
88 additions
and
83 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
server/src/main/java/org/cloudfoundry/identity/uaa/provider/saml/SamlKeysConfig.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,35 @@ | ||
package org.cloudfoundry.identity.uaa.provider.saml; | ||
|
||
import org.cloudfoundry.identity.uaa.saml.SamlKey; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import java.util.Map; | ||
|
||
@Configuration | ||
@ConfigurationProperties(prefix="login.saml") | ||
public class SamlKeysConfig { | ||
private String activeKeyId; | ||
|
||
private Map<String, SamlKey> keys; | ||
|
||
public String getActiveKeyId() { | ||
return activeKeyId; | ||
} | ||
|
||
public void setActiveKeyId(String activeKeyId) { | ||
this.activeKeyId = activeKeyId; | ||
} | ||
|
||
public Map<String, SamlKey> getKeys() { | ||
return keys; | ||
} | ||
|
||
public void setKeys(Map<String, SamlKey> keys) { | ||
this.keys = keys; | ||
} | ||
|
||
public SamlKey getActiveSamlKey() { | ||
return keys.get(activeKeyId); | ||
} | ||
} |
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