Remote consent service
The remote consent service is an example remote consent service (RCS) that lets you demonstrate and test remote consent.
| The example RCS isn’t intended for use in production environments because you can’t configure the encryption and signing algorithms. The example is intended only to demonstrate how you can configure Advanced Identity Cloud to use a custom RCS. |
Find information about configuring remote consent in production environments in Remote consent.
Configure the RCS
-
In the Advanced Identity Cloud admin console, go to Authorization > Remote Consent Service.
-
If the service isn’t already enabled, click Enable Remote Consent Service.
-
Configure the following settings:
- Client Name
-
The name used to identify this OAuth 2.0 RCS when referenced from other services.
- Authorization Server jwk_uri
-
The
jwk_urifor retrieving the authorization server signing and encryption keys. - JWK Store Cache Timeout (in minutes)
-
The cache timeout for the JWK store of the authorization server, in minutes.
- JWK Store Cache Miss Cache Time (in minutes)
-
The length of time a cache miss is cached, in minutes.
- Consent Response Time Limit (in minutes)
-
The time limit set on the consent response JWT before it expires, in minutes.
-
Click Save.
Test the example RCS
The following example uses the same Advanced Identity Cloud tenant as both the authorization server and the consent service.
-
In the Advanced Identity Cloud admin console, go to Authorization > Remote Consent Service and configure the RCS as follows:
-
In Client Name, enter the agent ID of the remote consent agent profile.
For example,
myRCSAgent. -
In Authorization Server jwk_uri, enter the URI where the RCS retrieves the keys the authorization server uses to sign and encrypt the consent request. These keys include:
-
The public signing key the RCS uses to verify the signature of the consent request.
-
The public encryption key for the consent response, so that the response can be encrypted (if encryption is enabled).
The default JWKs URI for remote consent clients is
/oauth2/consent_agents/jwk_uri.For example,
https://<tenant-env-fqdn>/am/oauth2/realms/root/realms/alpha/consent_agents/jwk_uri. -
-
Click Save.
-
-
Map the following secret labels to ESV secrets:
-
am.services.oauth2.remote.consent.response.signing.RSA:rsajwtsigningkey -
am.services.oauth2.remote.consent.request.encryption:test
These keys must match the configuration of the RCS agent profile you create in the next step.
-
-
Create a remote consent agent profile by performing the steps in Remote consent agent profile.
The example RCS provides an
/oauth2/consent/jwk_uripath to supply its public keys to the authorization server. Enterhttps://<tenant-env-fqdn>/am/oauth2/consent/jwk_uriin the Json Web Key URI field for this example. -
Enable remote consent on the OAuth 2.0 provider by performing the steps in Use the profile.
-
Test your configuration.
Perform an OAuth 2.0 flow that requires consent. Advanced Identity Cloud renders the consent page using the example RCS.