testsuite/integration/src/test/java/org/keycloak/testsuite/broker/AbstractIdentityProviderTest.java
/**
     * Test for KEYCLOAK-1053 - verify email action is not performed if email is not provided, login is normal, but action stays in set to be performed later
     */
Test for KEYCLOAK-1053 - verify email action is not performed if email is not provided, login is normal, but action stays in set to be performed later
Test for KEYCLOAK - 1053 - verify email action is not performed if email is not provided login is normal but action stays in set to be performed later
@Test
    public void testSuccessfulAuthenticationWithoutUpdateProfile_emailNotProvided_emailVerifyEnabled() {
        getRealm().setVerifyEmail(true);
        brokerServerRule.stopSession(this.session, true);
        this.session = brokerServerRule.startSession();
        try {
            IdentityProviderModel identityProviderModel = getIdentityProviderModel();
            identityProviderModel.setUpdateProfileFirstLoginMode(IdentityProviderRepresentation.UPFLM_OFF);
            UserModel federatedUser = assertSuccessfulAuthentication(identityProviderModel, "test-user-noemail", null, false);
            assertTrue(federatedUser.getRequiredActions().contains(RequiredAction.VERIFY_EMAIL.name()));
        } finally {
            getRealm().setVerifyEmail(false);
        }
    }
@ Test public void testSuccessfulAuthenticationWithoutUpdateProfile_emailNotProvided_emailVerifyEnabled ( ) { getRealm ( ) . setVerifyEmail ( true ) ; brokerServerRule . stopSession ( this . session , true ) ; this . session = brokerServerRule . startSession ( ) ; try { IdentityProviderModel identityProviderModel = getIdentityProviderModel ( ) ; identityProviderModel . setUpdateProfileFirstLoginMode ( IdentityProviderRepresentation . UPFLM_OFF ) ; UserModel federatedUser = assertSuccessfulAuthentication ( identityProviderModel , "test-user-noemail" , null , false ) ; assertTrue ( federatedUser . getRequiredActions ( ) . contains ( RequiredAction . VERIFY_EMAIL . name ( ) ) ) ; } finally { getRealm ( ) . setVerifyEmail ( false ) ; } }
Test for KEYCLOAK-1053 - verify email action is not performed if email is not provided, login is normal, but action stays in set to be performed later
Test for KEYCLOAK - 1053 - verify email action is not performed if email is not provided login is normal but action stays in set to be performed later