AMQP Ticket Registry

CAS can be enabled with a variety of messaging systems in order to distribute and share ticket data: from simplified use of the AMQP API to a complete infrastructure to receive messages asynchronously.

This registry is very much an extension of the default ticket registry. The difference is that ticket operations applied to the registry are broadcasted using a messaging queue to other listening CAS nodes on the queue. Each node keeps copies of ticket state on its own and only instructs others to keep their copy accurate by broadcasting messages and data associated with each. Each message and ticket registry instance running inside a CAS node in the cluster is tagged with a unique identifier in order to avoid endless looping behavior and recursive needless inbound operations.

The broadcast and the message queue is backed by the Advanced Message Queuing Protocol (AMQP) protocol. This is a platform-neutral, wire-level protocol for message-oriented middleware. The implementation of this protocol is backed by RabbitMQ. This is a lightweight, reliable, scalable, and portable message broker based on the AMQP protocol. CAS uses RabbitMQ to communicate through the AMQP protocol.

Support is enabled by including the following dependency in the overlay:

1
2
3
4
5
<dependency>
    <groupId>org.apereo.cas</groupId>
    <artifactId>cas-server-support-amqp-ticket-registry</artifactId>
    <version>${cas.version}</version>
</dependency>
1
implementation "org.apereo.cas:cas-server-support-amqp-ticket-registry:${project.'cas.version'}"
1
2
3
4
5
6
7
8
9
dependencyManagement {
    imports {
        mavenBom "org.apereo.cas:cas-server-support-bom:${project.'cas.version'}"
    }
}

dependencies {
    implementation "org.apereo.cas:cas-server-support-amqp-ticket-registry"
}
1
2
3
4
5
6
7
8
9
10
dependencies {
    /*
        The following platform references should be included automatically and are listed here for reference only.

        implementation enforcedPlatform("org.apereo.cas:cas-server-support-bom:${project.'cas.version'}")
        implementation platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
        
    */
    implementation "org.apereo.cas:cas-server-support-amqp-ticket-registry"
}

CAS Configuration

The following settings and properties are available from the CAS configuration catalog:

The configuration settings listed below are tagged as Required in the CAS configuration metadata. This flag indicates that the presence of the setting may be needed to activate or affect the behavior of the CAS feature and generally should be reviewed, possibly owned and adjusted. If the setting is assigned a default value, you do not need to strictly put the setting in your copy of the configuration, but should review it nonetheless to make sure it matches your deployment expectations.

  • cas.ticket.registry.in-memory.crypto.encryption.key=
  • The encryption key. The encryption key by default and unless specified otherwise must be randomly-generated string whose length is defined by the encryption key size setting.

    org.apereo.cas.configuration.model.core.util.EncryptionRandomizedCryptoProperties.

    How can I configure this property?

  • cas.ticket.registry.in-memory.crypto.signing.key=
  • The signing key is a JWT whose length is defined by the signing key size setting.

    This setting supports the Spring Expression Language.

    org.apereo.cas.configuration.model.core.util.SigningJwtCryptoProperties.

    How can I configure this property?

    The configuration settings listed below are tagged as Optional in the CAS configuration metadata. This flag indicates that the presence of the setting is not immediately necessary in the end-user CAS configuration, because a default value is assigned or the activation of the feature is not conditionally controlled by the setting value. In other words, you should only include this field in your configuration if you need to modify the default value or if you need to turn on the feature controlled by the setting.

  • cas.ticket.registry.in-memory.concurrency=20
  • The estimated number of concurrently updating threads. The implementation performs internal sizing to try to accommodate this many threads.

    org.apereo.cas.configuration.model.core.ticket.registry.InMemoryTicketRegistryProperties.

    How can I configure this property?

  • cas.ticket.registry.in-memory.initial-capacity=1000
  • The initial capacity of the underlying memory store. The implementation performs internal sizing to accommodate this many elements.

    org.apereo.cas.configuration.model.core.ticket.registry.InMemoryTicketRegistryProperties.

    How can I configure this property?

  • cas.ticket.registry.in-memory.load-factor=1
  • The load factor threshold, used to control resizing. Resizing may be performed when the average number of elements per bin exceeds this threshold.

    org.apereo.cas.configuration.model.core.ticket.registry.InMemoryTicketRegistryProperties.

    How can I configure this property?

  • cas.ticket.registry.in-memory.crypto.alg=AES
  • The signing/encryption algorithm to use.

    org.apereo.cas.configuration.model.core.util.EncryptionRandomizedSigningJwtCryptographyProperties.

    How can I configure this property?

  • cas.ticket.registry.in-memory.crypto.enabled=true
  • Whether crypto operations are enabled.

    org.apereo.cas.configuration.model.core.util.EncryptionRandomizedSigningJwtCryptographyProperties.

    How can I configure this property?

  • cas.ticket.registry.in-memory.crypto.encryption.key-size=16
  • Encryption key size.

    org.apereo.cas.configuration.model.core.util.EncryptionRandomizedCryptoProperties.

    How can I configure this property?

  • cas.ticket.registry.in-memory.crypto.signing-enabled=true
  • Whether signing encryption operations are enabled.

    org.apereo.cas.configuration.model.core.util.EncryptionRandomizedSigningJwtCryptographyProperties.

    How can I configure this property?

  • cas.ticket.registry.in-memory.crypto.signing.key-size=512
  • The signing key size.

    org.apereo.cas.configuration.model.core.util.SigningJwtCryptoProperties.

    How can I configure this property?

    The configuration settings listed below are tagged as Third Party in the CAS configuration metadata. This flag indicates that the configuration setting is not controlled, owned or managed by the CAS ecosystem, and affects functionality that is offered by a third-party library, such as Spring Boot or Spring Cloud to CAS. For additional info, you might have to visit the third-party source to find more details.

  • spring.rabbitmq.address-shuffle-mode=none
  • Mode used to shuffle configured addresses.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties.

    How can I configure this property?

  • spring.rabbitmq.addresses=
  • Comma-separated list of addresses to which the client should connect. When set, the host and port are ignored.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties.

    How can I configure this property?

  • spring.rabbitmq.cache.channel.checkout-timeout=
  • Duration to wait to obtain a channel if the cache size has been reached. If 0, always create a new channel.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Cache$Channel.

    How can I configure this property?

  • spring.rabbitmq.cache.channel.size=
  • Number of channels to retain in the cache. When "check-timeout" > 0, max channels per connection.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Cache$Channel.

    How can I configure this property?

  • spring.rabbitmq.cache.connection.mode=channel
  • Connection factory cache mode.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Cache$Connection.

    How can I configure this property?

  • spring.rabbitmq.cache.connection.size=
  • Number of connections to cache. Only applies when mode is CONNECTION.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Cache$Connection.

    How can I configure this property?

  • spring.rabbitmq.channel-rpc-timeout=10m
  • Continuation timeout for RPC calls in channels. Set it to zero to wait forever.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties.

    How can I configure this property?

  • spring.rabbitmq.connection-timeout=
  • Connection timeout. Set it to zero to wait forever.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties.

    How can I configure this property?

  • spring.rabbitmq.dynamic=true
  • Whether to create an AmqpAdmin bean.

    How can I configure this property?

  • spring.rabbitmq.host=localhost
  • RabbitMQ host. Ignored if an address is set.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties.

    How can I configure this property?

  • spring.rabbitmq.listener.direct.acknowledge-mode=
  • Acknowledge mode of container.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$DirectContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.direct.auto-startup=true
  • Whether to start the container automatically on startup.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$DirectContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.direct.consumers-per-queue=
  • Number of consumers per queue.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$DirectContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.direct.de-batching-enabled=true
  • Whether the container should present batched messages as discrete messages or call the listener with the batch.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$DirectContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.direct.default-requeue-rejected=
  • Whether rejected deliveries are re-queued by default.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$DirectContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.direct.force-stop=false
  • Whether the container (when stopped) should stop immediately after processing the current message or stop after processing all pre-fetched messages.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$DirectContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.direct.idle-event-interval=
  • How often idle container events should be published.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$DirectContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.direct.missing-queues-fatal=false
  • Whether to fail if the queues declared by the container are not available on the broker.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$DirectContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.direct.observation-enabled=false
  • Whether to enable observation.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$DirectContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.direct.prefetch=
  • Maximum number of unacknowledged messages that can be outstanding at each consumer.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$DirectContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.direct.retry.enabled=false
  • Whether publishing retries are enabled.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$ListenerRetry.

    How can I configure this property?

  • spring.rabbitmq.listener.direct.retry.initial-interval=1000ms
  • Duration between the first and second attempt to deliver a message.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$ListenerRetry.

    How can I configure this property?

  • spring.rabbitmq.listener.direct.retry.max-attempts=3
  • Maximum number of attempts to deliver a message.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$ListenerRetry.

    How can I configure this property?

  • spring.rabbitmq.listener.direct.retry.max-interval=10000ms
  • Maximum duration between attempts.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$ListenerRetry.

    How can I configure this property?

  • spring.rabbitmq.listener.direct.retry.multiplier=1
  • Multiplier to apply to the previous retry interval.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$ListenerRetry.

    How can I configure this property?

  • spring.rabbitmq.listener.direct.retry.stateless=true
  • Whether retries are stateless or stateful.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$ListenerRetry.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.acknowledge-mode=
  • Acknowledge mode of container.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$SimpleContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.auto-startup=true
  • Whether to start the container automatically on startup.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$SimpleContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.batch-size=
  • Batch size, expressed as the number of physical messages, to be used by the container.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$SimpleContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.concurrency=
  • Minimum number of listener invoker threads.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$SimpleContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.consumer-batch-enabled=false
  • Whether the container creates a batch of messages based on the 'receive-timeout' and 'batch-size'. Coerces 'de-batching-enabled' to true to include the contents of a producer created batch in the batch as discrete records.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$SimpleContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.de-batching-enabled=true
  • Whether the container should present batched messages as discrete messages or call the listener with the batch.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$SimpleContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.default-requeue-rejected=
  • Whether rejected deliveries are re-queued by default.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$SimpleContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.force-stop=false
  • Whether the container (when stopped) should stop immediately after processing the current message or stop after processing all pre-fetched messages.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$SimpleContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.idle-event-interval=
  • How often idle container events should be published.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$SimpleContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.max-concurrency=
  • Maximum number of listener invoker threads.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$SimpleContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.missing-queues-fatal=true
  • Whether to fail if the queues declared by the container are not available on the broker and/or whether to stop the container if one or more queues are deleted at runtime.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$SimpleContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.observation-enabled=false
  • Whether to enable observation.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$SimpleContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.prefetch=
  • Maximum number of unacknowledged messages that can be outstanding at each consumer.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$SimpleContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.retry.enabled=false
  • Whether publishing retries are enabled.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$ListenerRetry.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.retry.initial-interval=1000ms
  • Duration between the first and second attempt to deliver a message.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$ListenerRetry.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.retry.max-attempts=3
  • Maximum number of attempts to deliver a message.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$ListenerRetry.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.retry.max-interval=10000ms
  • Maximum duration between attempts.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$ListenerRetry.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.retry.multiplier=1
  • Multiplier to apply to the previous retry interval.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$ListenerRetry.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.retry.stateless=true
  • Whether retries are stateless or stateful.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$ListenerRetry.

    How can I configure this property?

  • spring.rabbitmq.listener.simple.transaction-size=
  • How can I configure this property?

    Deprecation status is ERRORwithout a replacement setting.

  • spring.rabbitmq.listener.stream.native-listener=false
  • Whether the container will support listeners that consume native stream messages instead of Spring AMQP messages.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$StreamContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.stream.observation-enabled=false
  • Whether to enable observation.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$StreamContainer.

    How can I configure this property?

  • spring.rabbitmq.listener.type=simple
  • Listener container type.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Listener.

    How can I configure this property?

  • spring.rabbitmq.max-inbound-message-body-size=64MB
  • Maximum size of the body of inbound (received) messages.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties.

    How can I configure this property?

  • spring.rabbitmq.password=guest
  • Login to authenticate against the broker.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties.

    How can I configure this property?

  • spring.rabbitmq.port=
  • RabbitMQ port. Ignored if an address is set. Default to 5672, or 5671 if SSL is enabled.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties.

    How can I configure this property?

  • spring.rabbitmq.publisher-confirm-type=
  • Type of publisher confirms to use.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties.

    How can I configure this property?

  • spring.rabbitmq.publisher-confirms=
  • How can I configure this property?

    Deprecation status is ERRORwithout a replacement setting.

  • spring.rabbitmq.publisher-returns=false
  • Whether to enable publisher returns.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties.

    How can I configure this property?

  • spring.rabbitmq.requested-channel-max=2047
  • Number of channels per connection requested by the client. Use 0 for unlimited.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties.

    How can I configure this property?

  • spring.rabbitmq.requested-heartbeat=
  • Requested heartbeat timeout; zero for none. If a duration suffix is not specified, seconds will be used.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties.

    How can I configure this property?

  • spring.rabbitmq.ssl.algorithm=
  • SSL algorithm to use. By default, configured by the Rabbit client library.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Ssl.

    How can I configure this property?

  • spring.rabbitmq.ssl.bundle=
  • SSL bundle name.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Ssl.

    How can I configure this property?

  • spring.rabbitmq.ssl.enabled=
  • Whether to enable SSL support. Determined automatically if an address is provided with the protocol (amqp:// vs. amqps://).

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Ssl.

    How can I configure this property?

  • spring.rabbitmq.ssl.key-store=
  • Path to the key store that holds the SSL certificate.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Ssl.

    How can I configure this property?

  • spring.rabbitmq.ssl.key-store-algorithm=SunX509
  • Key store algorithm.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Ssl.

    How can I configure this property?

  • spring.rabbitmq.ssl.key-store-password=
  • Password used to access the key store.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Ssl.

    How can I configure this property?

  • spring.rabbitmq.ssl.key-store-type=PKCS12
  • Key store type.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Ssl.

    How can I configure this property?

  • spring.rabbitmq.ssl.trust-store=
  • Trust store that holds SSL certificates.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Ssl.

    How can I configure this property?

  • spring.rabbitmq.ssl.trust-store-algorithm=SunX509
  • Trust store algorithm.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Ssl.

    How can I configure this property?

  • spring.rabbitmq.ssl.trust-store-password=
  • Password used to access the trust store.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Ssl.

    How can I configure this property?

  • spring.rabbitmq.ssl.trust-store-type=JKS
  • Trust store type.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Ssl.

    How can I configure this property?

  • spring.rabbitmq.ssl.validate-server-certificate=true
  • Whether to enable server side certificate validation.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Ssl.

    How can I configure this property?

  • spring.rabbitmq.ssl.verify-hostname=true
  • Whether to enable hostname verification.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Ssl.

    How can I configure this property?

  • spring.rabbitmq.stream.host=localhost
  • Host of a RabbitMQ instance with the Stream plugin enabled.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Stream.

    How can I configure this property?

  • spring.rabbitmq.stream.name=
  • Name of the stream.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Stream.

    How can I configure this property?

  • spring.rabbitmq.stream.password=
  • Login password to authenticate to the broker. When not set spring.rabbitmq.password is used.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Stream.

    How can I configure this property?

  • spring.rabbitmq.stream.port=
  • Stream port of a RabbitMQ instance with the Stream plugin enabled.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Stream.

    How can I configure this property?

  • spring.rabbitmq.stream.username=
  • Login user to authenticate to the broker. When not set, spring.rabbitmq.username is used.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Stream.

    How can I configure this property?

  • spring.rabbitmq.stream.virtual-host=
  • Virtual host of a RabbitMQ instance with the Stream plugin enabled. When not set, spring.rabbitmq.virtual-host is used.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Stream.

    How can I configure this property?

  • spring.rabbitmq.template.allowed-list-patterns=
  • Simple patterns for allowable packages/classes for deserialization.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Template.

    How can I configure this property?

  • spring.rabbitmq.template.default-receive-queue=
  • Name of the default queue to receive messages from when none is specified explicitly.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Template.

    How can I configure this property?

  • spring.rabbitmq.template.exchange=
  • Name of the default exchange to use for send operations.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Template.

    How can I configure this property?

  • spring.rabbitmq.template.mandatory=
  • Whether to enable mandatory messages.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Template.

    How can I configure this property?

  • spring.rabbitmq.template.observation-enabled=false
  • Whether to enable observation.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Template.

    How can I configure this property?

  • spring.rabbitmq.template.queue=
  • How can I configure this property?

    Deprecation status is ERRORwith a replacement setting: spring.rabbitmq.template.default-receive-queue.

  • spring.rabbitmq.template.receive-timeout=
  • Timeout for receive() operations.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Template.

    How can I configure this property?

  • spring.rabbitmq.template.reply-timeout=
  • Timeout for sendAndReceive() operations.

    org.springframework.boot.autoconfigure.amqp.RabbitProperties$Template.

    How can I configure this property?