Java Code Examples for org.keycloak.representations.idm.ClientRepresentation#setImplicitFlowEnabled()
The following examples show how to use
org.keycloak.representations.idm.ClientRepresentation#setImplicitFlowEnabled() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OAuth2OnlyTest.java From keycloak with Apache License 2.0 | 6 votes |
@Override public void configureTestRealm(RealmRepresentation testRealm) { ClientRepresentation client = new ClientRepresentation(); client.setClientId("more-uris-client"); client.setEnabled(true); client.setRedirectUris(Arrays.asList("http://localhost:8180/auth/realms/master/app/auth", "http://localhost:8180/foo", "https://localhost:8543/auth/realms/master/app/auth", "https://localhost:8543/foo")); client.setBaseUrl("http://localhost:8180/auth/realms/master/app/auth"); testRealm.getClients().add(client); ClientRepresentation testApp = testRealm.getClients().stream() .filter(cl -> cl.getClientId().equals("test-app")) .findFirst().get(); testApp.setImplicitFlowEnabled(true); trimRedirectUris(testApp); }
Example 2
Source File: AbstractJavascriptTest.java From keycloak with Apache License 2.0 | 5 votes |
protected void setImplicitFlowForClient() { ClientResource clientResource = ApiUtil.findClientResourceByClientId(adminClient.realms().realm(REALM_NAME), CLIENT_ID); ClientRepresentation client = clientResource.toRepresentation(); client.setImplicitFlowEnabled(true); client.setStandardFlowEnabled(false); clientResource.update(client); }
Example 3
Source File: AbstractJavascriptTest.java From keycloak with Apache License 2.0 | 5 votes |
protected void setStandardFlowForClient() { ClientResource clientResource = ApiUtil.findClientResourceByClientId(adminClient.realms().realm(REALM_NAME), CLIENT_ID); ClientRepresentation client = clientResource.toRepresentation(); client.setImplicitFlowEnabled(false); client.setStandardFlowEnabled(true); clientResource.update(client); }
Example 4
Source File: ClientManager.java From keycloak with Apache License 2.0 | 4 votes |
public ClientManagerBuilder implicitFlow(Boolean enable) { ClientRepresentation app = clientResource.toRepresentation(); app.setImplicitFlowEnabled(enable); clientResource.update(app); return this; }