-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configuration document and add manage realm rights #57
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,10 @@ A keycloak plugin to support advanced group management features: | |
* Roles within groups | ||
|
||
## General configuration options | ||
All web services to be executed needs realm management rights role. | ||
|
||
For general group management configuarion options execute following web service (necessary during first time deployed): | ||
1. You should define realm attribute 'keycloakUrl' (Keycloak main url) | ||
2. (optional) For general group management configuration options execute following web service (necessary during first time deployed): | ||
|
||
`curl --request PUT \ | ||
--url {server_url}/realms/{realmName}/agm/admin/configuration \ | ||
|
@@ -28,10 +30,47 @@ For general group management configuarion options execute following web service | |
}'` | ||
|
||
Parameter explanation: | ||
- invitation-expiration-period = After how many hours the invitation will be expired. | ||
- expiration-notification-period = How many days before Group Membership expiration (or aup expiration) notification email will be sent to user. Can be overridden per Group. | ||
- invitation-expiration-period = After how many hours the invitation will be expired. (default value is 72) | ||
- expiration-notification-period = How many days before Group Membership expiration (or aup expiration) notification email will be sent to user. Can be overridden per Group. (default value is 21) | ||
|
||
3. For configuring entitlements user attribute you must execute the following web service : | ||
`curl --request POST \ | ||
--url {server_url}/realms/{realmName}/agm/admin/member-user-attribute/configuration \ | ||
--header 'Accept: application/json' \ | ||
--header 'Authorization: Bearer {admin_access_token}' \ | ||
--header 'Content-Type: application/json' \ | ||
--data '{ | ||
"userAttribute" : "eduPersonEntitlement", | ||
"urnNamespace" : "urn%3Agrnett%3Aeosc-portal.eu", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change to "urn%3Amace%3Aexample.org" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
"authority" : "aai.eosc-portal.eu" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. change to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
}'` | ||
|
||
Only authority is optional. | ||
|
||
4. Configuration rules exists for group configuration options. Web service example: | ||
`curl --request POST \ | ||
--url {server_url}/realms/{realmName}/agm/admin/configuration-rules \ | ||
--header 'Accept: application/json' \ | ||
--header 'Authorization: Bearer {admin_access_token}' \ | ||
--header 'Content-Type: application/json' \ | ||
--data '{ | ||
"field" : "membershipExpirationDays" , | ||
"type" : "TOP_LEVEL" , | ||
"required" : true, | ||
"defaultValue" : "30", | ||
"max" : "45" | ||
}'` | ||
|
||
Fields explanation : | ||
- *field* : field of group management (required) | ||
NicolasLiampotis marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- *type* : "TOP_LEVEL" or "SUBGROUP" (required) | ||
- *required* : required field (required) | ||
- *defaultValue* : default value | ||
- *max* : max value | ||
|
||
With PUT *{server_url}/realms/{realmName}/agm/admin/configuration-rules/{id}* you could update a configuration rule. | ||
With GET *{server_url}/realms/{realmName}/agm/admin/configuration-rules* you could get all configuration rules. | ||
|
||
You should define realm attribute 'keycloakUrl' (Keycloak main url) | ||
|
||
## REST API | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should change to
entitlements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done