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.
Service Access Strategy - HTTP Request
This strategy allows one to configure a service with the following properties:
Field | Description |
---|---|
ipAddress |
(Optional) Regular expression pattern compared against the client IP address. |
userAgent |
(Optional) Regular expression pattern compared against the browser user agent. |
headers |
(Optional) Regular expression pattern compared against the request headers. |
The objective of this policy is examine specific properties of the HTTP request and make service access decisions by comparing those properties with pre-defined rules and patterns, such as those that might be based on an IP address, user-agent, etc.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"@class" : "org.apereo.cas.services.CasRegisteredService",
"serviceId" : "^https://.+",
"id" : 1,
"accessStrategy" : {
"@class" : "org.apereo.cas.services.HttpRequestRegisteredServiceAccessStrategy",
"ipAddress" : "192.\\d\\d\\d.\\d\\d\\d.101",
"userAgent": "Chrome.+",
"headers":{
"@class": "java.util.TreeMap",
"Header1": "Value.+Pattern"
}
}
}