bland-finland-95044
09/03/2024, 8:07 PMchilly-king-10285
09/03/2024, 8:07 PMchilly-king-10285
09/03/2024, 8:07 PMbash ory patch oauth2-config --project <project-id> --workspace <workspace-id> \ --replace "/ttl/login_consent_request=\"2h\"" \ --format yaml
In this command, replace <project-id>
and <workspace-id>
with your project and workspace IDs, respectively. The "/ttl/login_consent_request=\"2h\""
part sets the new expiration time for the login and consent request to 2 hours. You can adjust this value to meet your needs. For more details, please refer to the [Ory documentation](https://www.ory.sh/docs/hydra/guides/client-token-expiration#login-and-consent-flow).bland-finland-95044
09/03/2024, 8:08 PMlogin_consent_request
chilly-king-10285
09/03/2024, 8:08 PMchilly-king-10285
09/03/2024, 8:08 PMlogin_consent_request
, you need to use the Ory Hydra API's getOAuth2ConsentRequest
method. This method is used to fetch information about a consent request. The consent challenge is used as a parameter to fetch this information. Here is the endpoint you would use: GET /admin/oauth2/auth/requests/consent
You need to provide the consent_challenge
as a query parameter. This challenge is used to identify the session. For more details, please refer to the [Ory API documentation](https://www.ory.sh/docs/reference/api#operation/getOAuth2ConsentRequest).