Attribute Consent
CAS provides the ability to enforce user-informed consent upon attribute release. Practically, this means that prior to accessing the target application, the user will be presented with a collection of attributes allowed to be released to the application with options to either proceed or deny the release of said attributes. There are also additional options to indicate how should underlying changes in the attribute release policy be considered by the consent engine. Users are also provided the ability to set up reminders in the event that no change is detected in the attribute release policy.
Consent attribute records stored in the configured repository are signed and encrypted.
Support is enabled by including the following module in the WAR Overlay:
1
2
3
4
5
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-consent-webflow</artifactId>
<version>${cas.version}</version>
</dependency>
1
implementation "org.apereo.cas:cas-server-support-consent-webflow:${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-consent-webflow"
}
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-consent-webflow"
}
Configuration
The following settings and properties are available from the CAS configuration catalog:
cas.consent.core.crypto.encryption.key=
The encryption key is a JWT whose length is defined by the encryption key size setting.
|
cas.consent.core.crypto.signing.key=
The signing key is a JWT whose length is defined by the signing key size setting.
|
cas.consent.core.crypto.alg=
The signing/encryption algorithm to use.
|
cas.consent.core.crypto.enabled=true
Whether crypto operations are enabled.
|
cas.consent.core.crypto.encryption.key-size=512
The encryption key size.
|
cas.consent.core.crypto.signing.key-size=512
The signing key size.
|
cas.consent.core.crypto.strategy-type=ENCRYPT_AND_SIGN
Control the cipher sequence of operations. The accepted values are:
|
cas.consent.core.webflow.enabled=true
Whether webflow auto-configuration should be enabled.
|
cas.consent.core.webflow.order=0
The order in which the webflow is configured.
|
cas.consent.core.active=true
Whether consent functionality should be globally applicapable to all applications and requests.
|
cas.consent.core.enabled=true
Whether consent functionality should be enabled.
|
cas.consent.core.excluded-attributes=
Attributes that should always and globally be excluded from the list of consentable attributes. Such attributes are always ignored during consent rule calculations and users will not be prmopted to consent to their release..
|
cas.consent.core.reminder=30
Global reminder time unit, to reconfirm consent in cases no changes are detected.
|
cas.consent.core.reminder-time-unit=
Global reminder time unit of measure, to reconfirm consent in cases no changes are detected.
|