Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KEYCLOAK-1070 JSON representation and export/import for userConsent
- Loading branch information
Showing
21 changed files
with
204 additions
and
70 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
core/src/main/java/org/keycloak/representations/idm/UserConsentRepresentation.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,28 @@ | |||
package org.keycloak.representations.idm; | |||
|
|||
import java.util.List; | |||
|
|||
/** | |||
* @author <a href="mailto:mposolda@redhat.com">Marek Posolda</a> | |||
*/ | |||
public class UserConsentRepresentation { | |||
|
|||
protected List<String> grantedRoles; // points to roleIds | |||
protected List<String> grantedProtocolMappers; // points to protocolMapperIds | |||
|
|||
public List<String> getGrantedRoles() { | |||
return grantedRoles; | |||
} | |||
|
|||
public void setGrantedRoles(List<String> grantedRoles) { | |||
this.grantedRoles = grantedRoles; | |||
} | |||
|
|||
public List<String> getGrantedProtocolMappers() { | |||
return grantedProtocolMappers; | |||
} | |||
|
|||
public void setGrantedProtocolMappers(List<String> grantedProtocolMappers) { | |||
this.grantedProtocolMappers = grantedProtocolMappers; | |||
} | |||
} |
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
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
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.