Fix BrokerTest
This commit is contained in:
parent
ac59c551c3
commit
b9983cc5f6
1 changed files with 6 additions and 1 deletions
|
@ -136,7 +136,12 @@ public class BrokerTest extends AbstractSamlTest {
|
||||||
|
|
||||||
AuthenticationExecutionInfoRepresentation reviewProfileAuthenticator = null;
|
AuthenticationExecutionInfoRepresentation reviewProfileAuthenticator = null;
|
||||||
String firstBrokerLoginFlowAlias = null;
|
String firstBrokerLoginFlowAlias = null;
|
||||||
try (IdentityProviderCreator idp = new IdentityProviderCreator(realm, addIdentityProvider("https://saml.idp/saml"))) {
|
final IdentityProviderRepresentation rep = addIdentityProvider("https://saml.idp/saml");
|
||||||
|
rep.getConfig().put(SAMLIdentityProviderConfig.NAME_ID_POLICY_FORMAT, "undefined");
|
||||||
|
rep.getConfig().put(SAMLIdentityProviderConfig.PRINCIPAL_TYPE, SamlPrincipalType.ATTRIBUTE.toString());
|
||||||
|
rep.getConfig().put(SAMLIdentityProviderConfig.PRINCIPAL_ATTRIBUTE, "mail");
|
||||||
|
|
||||||
|
try (IdentityProviderCreator idp = new IdentityProviderCreator(realm, rep)) {
|
||||||
IdentityProviderRepresentation idpRepresentation = idp.identityProvider().toRepresentation();
|
IdentityProviderRepresentation idpRepresentation = idp.identityProvider().toRepresentation();
|
||||||
firstBrokerLoginFlowAlias = idpRepresentation.getFirstBrokerLoginFlowAlias();
|
firstBrokerLoginFlowAlias = idpRepresentation.getFirstBrokerLoginFlowAlias();
|
||||||
List<AuthenticationExecutionInfoRepresentation> executions = realm.flows().getExecutions(firstBrokerLoginFlowAlias);
|
List<AuthenticationExecutionInfoRepresentation> executions = realm.flows().getExecutions(firstBrokerLoginFlowAlias);
|
||||||
|
|
Loading…
Reference in a new issue