...
Code Block | ||||
---|---|---|---|---|
| ||||
<bean id="serviceRegistryDao" class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl">
<property name="registeredServices">
<list>
<bean class="org.jasig.cas.services.RegisteredServiceImpl">
<property name="id" value="0" />
<property name="name" value="HTTP" />
<property name="description" value="oauth wrapper callback url" />
<property name="serviceId" value="${server.prefix}/oauth2.0/callbackAuthorize" />
</bean>
... |
Starting with CAS 4, this configuration is made more explicit such that specific OAuth Services are now recognized by CAS:
Code Block | ||||
---|---|---|---|---|
| ||||
<bean id="serviceRegistryDao" class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl"> <property name="registeredServices"> <list> <!-- A dedicated component to recognize OAuth Callback Authorization requests --> <bean class="org.jasig.cas.support.oauth.services.OAuthCallbackAuthorizeService"> <property name="id" value="0" /> <property name="name" value="HTTP" /> <property name="description" value="oauth wrapper callback url" /> <!-- By default, only support regex patterns if/when needed --> <property name="serviceId" value="${server.prefix}/oauth2.0/callbackAuthorize" /> </bean> ... |
3.2) OAuth Clients
A second service is necessary to register an OAuth client:
...