fix
This commit is contained in:
parent
d8e98d1de6
commit
8c2e756732
2 changed files with 2 additions and 1 deletions
|
@ -861,7 +861,7 @@ public class IdentityBrokerService implements IdentityProvider.AuthenticationCal
|
||||||
.detail(Details.IDENTITY_PROVIDER, newModel.getIdentityProvider())
|
.detail(Details.IDENTITY_PROVIDER, newModel.getIdentityProvider())
|
||||||
.detail(Details.IDENTITY_PROVIDER_USERNAME, newModel.getUserName())
|
.detail(Details.IDENTITY_PROVIDER_USERNAME, newModel.getUserName())
|
||||||
.success();
|
.success();
|
||||||
|
|
||||||
// we do this to make sure that the parent IDP is logged out when this user session is complete.
|
// we do this to make sure that the parent IDP is logged out when this user session is complete.
|
||||||
|
|
||||||
clientSession.getUserSession().setNote(Details.IDENTITY_PROVIDER, context.getIdpConfig().getAlias());
|
clientSession.getUserSession().setNote(Details.IDENTITY_PROVIDER, context.getIdpConfig().getAlias());
|
||||||
|
|
|
@ -433,6 +433,7 @@ public abstract class AbstractKeycloakIdentityProviderTest extends AbstractIdent
|
||||||
|
|
||||||
// Assert I am logged immediately to account management due to previously linked "test-user" identity
|
// Assert I am logged immediately to account management due to previously linked "test-user" identity
|
||||||
loginPage.clickSocial(identityProviderModel.getAlias());
|
loginPage.clickSocial(identityProviderModel.getAlias());
|
||||||
|
this.loginPage.login("test-user", "password");
|
||||||
doAfterProviderAuthentication();
|
doAfterProviderAuthentication();
|
||||||
assertTrue(accountFederatedIdentityPage.isCurrent());
|
assertTrue(accountFederatedIdentityPage.isCurrent());
|
||||||
assertTrue(driver.getPageSource().contains("id=\"remove-" + identityProviderModel.getAlias() + "\""));
|
assertTrue(driver.getPageSource().contains("id=\"remove-" + identityProviderModel.getAlias() + "\""));
|
||||||
|
|
Loading…
Reference in a new issue