Enterprise Single Sign-On for All

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>

Or as a @Bean definition inside your own @Configuration class:

1
2
3
4
5
6
7
8
9
10
11
12
@Configuration("myConfiguration")
public class MyConfiguration {

  @Bean
  public List inMemoryRegisteredServices() {
      final List services = new ArrayList<>();
      final RegexRegisteredService service = new RegexRegisteredService();
      ...
      services.add(service);
      return services;
  }
}

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 definition.

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 configuration permitting, 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.