forked from keycloak/keycloak
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KEYCLOAK-17399] - Declarative User Profile and UI
Co-authored-by: Vlastimil Elias <[email protected]>
- Loading branch information
Showing
91 changed files
with
3,883 additions
and
997 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,16 +17,35 @@ | |
|
||
package org.keycloak.representations.idm; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Stian Thorgersen</a> | ||
*/ | ||
public class ErrorRepresentation { | ||
private String field; | ||
private String errorMessage; | ||
private Object[] params; | ||
private List<ErrorRepresentation> errors; | ||
|
||
public ErrorRepresentation() { | ||
} | ||
|
||
public ErrorRepresentation(String errorMessage) { | ||
this.errorMessage = errorMessage; | ||
} | ||
|
||
public ErrorRepresentation(String field, String errorMessage, Object[] params) { | ||
super(); | ||
this.field = field; | ||
this.errorMessage = errorMessage; | ||
this.params = params; | ||
} | ||
|
||
public String getField() { | ||
return field; | ||
} | ||
|
||
public String getErrorMessage() { | ||
return errorMessage; | ||
} | ||
|
@@ -42,4 +61,12 @@ public Object[] getParams() { | |
public void setParams(Object[] params) { | ||
this.params = params; | ||
} | ||
|
||
public void setErrors(List<ErrorRepresentation> errors) { | ||
this.errors = errors; | ||
} | ||
|
||
public List<ErrorRepresentation> getErrors() { | ||
return errors; | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...on/admin-client/src/main/java/org/keycloak/admin/client/resource/UserProfileResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright 2021 Red Hat, Inc. and/or its affiliates | ||
* and other contributors as indicated by the @author tags. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.keycloak.admin.client.resource; | ||
|
||
import javax.ws.rs.Consumes; | ||
import javax.ws.rs.GET; | ||
import javax.ws.rs.PUT; | ||
import javax.ws.rs.Produces; | ||
import javax.ws.rs.core.MediaType; | ||
import javax.ws.rs.core.Response; | ||
|
||
/** | ||
* @author Vlastimil Elias <[email protected]> | ||
*/ | ||
@Consumes(MediaType.APPLICATION_JSON) | ||
@Produces(MediaType.APPLICATION_JSON) | ||
public interface UserProfileResource { | ||
|
||
@GET | ||
@Consumes(MediaType.APPLICATION_JSON) | ||
String getConfiguration(); | ||
|
||
@PUT | ||
@Produces(MediaType.APPLICATION_JSON) | ||
Response update(String text); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.