WORKERS AHEAD!
You are viewing the development documentation for the Apereo CAS server. The functionality presented here is not officially released yet. This is a work in progress and will be continually updated as development moves forward. You are most encouraged to test the changes presented.
Attribute Release Policy - Return Environment
Return environment info and application profiles to the service.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"@class" : "org.apereo.cas.services.CasRegisteredService",
"serviceId" : "sample",
"name" : "sample",
"id" : 100,
"attributeReleasePolicy" : {
"@class": "org.apereo.cas.services.ReturnEnvironmentAttributeReleasePolicy",
"environmentVariables": {
"@class": "java.util.LinkedHashMap",
"HOME": "MY_HOME"
},
"systemProperties": {
"@class": "java.util.LinkedHashMap",
"KEY": "MY_KEY"
}
}
}
The above definition will fetch then environment variable HOME
and release it as MY_HOME
. Likewise,
it would fetch the system property KEY
and release it as MY_KEY
. Active application profiles
are always released under an applicationProfile
attribute.