InMemory Service Registry

This is an in-memory services management tool seeded from registration beans wired via Spring beans.

1
2
3
4
5
6
7
<util:list id="inMemoryRegisteredServices">
    <bean class="org.apereo.cas.services.RegexRegisteredService"
          p:id="1"
          p:name="HTTPS and IMAPS services on example.com"
          p:serviceId="^(https|imaps)://([A-Za-z0-9_-]+\.)*example\.com/.*"
          p:evaluationOrder="0" />
</util:list>

Given registered services are injected into the context as Spring bean definitions, you will need to consult the project’s javadocs to learn more about the CAS service API, and how to inject various other components into the service defintion.

Caveat

This component is NOT suitable for use with the service management webapp since it does not persist data. On the other hand, it is perfectly acceptable for deployments where the XML configuration is authoritative for service registry data and the UI will not be used.

Auto Initialization

Upon startup and if the services registry is left blank, the registry is able to auto initialize itself from default JSON service definitions available to CAS.

To see the relevant list of CAS properties, please review this guide.