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.
RESTful Themes - User Interface Customization
Somewhat similar to the above option, you may calculate the final theme name via a REST endpoint of your own design. The
theme assigned to the service definition needs to point to the location of the REST API. Endpoints must be designed to
accept/process application/json
via GET
requests. A returned status code 200
allows CAS to read the body of the
response to determine the theme name. Empty response bodies will have CAS switch to the default theme.
1
2
3
4
5
6
7
{
"@class" : "org.apereo.cas.services.CasRegisteredService",
"serviceId" : "^https://www.example.org",
"name" : "MyTheme",
"theme" : "https://themes.example.org",
"id" : 1000
}
The following parameters may be passed to a REST endpoint:
Parameter | Description |
---|---|
service |
The requesting service identifier. |