marek suggested fixes

This commit is contained in:
Bill Burke 2018-01-24 09:32:38 -05:00
parent be65c14a6a
commit 4bfb62d7f4
3 changed files with 3 additions and 7 deletions

View file

@ -27,6 +27,6 @@
<constraints nullable="false"/> <constraints nullable="false"/>
</column> </column>
</createTable> </createTable>
<addPrimaryKey columnNames="CLIENT_ID, BINDING_NAME" constraintName="CONSTRAINT_CLIENT_AUTH_FLOW_BINDINGS" tableName="CLIENT_AUTH_FLOW_BINDINGS"/> <addPrimaryKey columnNames="CLIENT_ID, BINDING_NAME" constraintName="C_CLI_FLOW_BIND" tableName="CLIENT_AUTH_FLOW_BINDINGS"/>
</changeSet> </changeSet>
</databaseChangeLog> </databaseChangeLog>

View file

@ -197,10 +197,6 @@ public class OAuthClient {
origin = null; origin = null;
} }
public void setClientId(String clientId) {
this.clientId = clientId;
}
public AuthorizationEndpointResponse doLogin(String username, String password) { public AuthorizationEndpointResponse doLogin(String username, String password) {
openLoginForm(); openLoginForm();
fillLoginForm(username, password); fillLoginForm(username, password);

View file

@ -201,7 +201,7 @@ public class FlowOverrideTest extends AbstractTestRealmKeycloakTest {
@Test @Test
public void testWithClientBrowserOverride() throws Exception { public void testWithClientBrowserOverride() throws Exception {
oauth.setClientId(TEST_APP_FLOW); oauth.clientId(TEST_APP_FLOW);
String loginFormUrl = oauth.getLoginFormUrl(); String loginFormUrl = oauth.getLoginFormUrl();
log.info("loginFormUrl: " + loginFormUrl); log.info("loginFormUrl: " + loginFormUrl);
@ -231,7 +231,7 @@ public class FlowOverrideTest extends AbstractTestRealmKeycloakTest {
} }
private void testNoOverrideBrowser(String clientId) { private void testNoOverrideBrowser(String clientId) {
oauth.setClientId(clientId); oauth.clientId(clientId);
String loginFormUrl = oauth.getLoginFormUrl(); String loginFormUrl = oauth.getLoginFormUrl();
log.info("loginFormUrl: " + loginFormUrl); log.info("loginFormUrl: " + loginFormUrl);