gray-shoe-60285
09/12/2023, 12:00 PMpost_logout_redirect_uris
to my oauth client on Ory console. There is this section for redirect URIs, but this doesn't seem to add the URIs to the whitelist for post_logout_redirect_uris
? I am getting an error after doing an oauth signout redirect even though the URI I'm providing has been added via this part of the console?proud-plumber-24205
09/13/2023, 6:50 AMory get project <project-id> --format yaml > config.yaml
You can also patch the post_logout_redirect_uris
directly like so:
ory patch project <project-id> --replace '/services/oauth2/config/urls/post_logout_redirect="<https://example.com>"'
gray-shoe-60285
09/15/2023, 8:33 AM'/services/oauth2/config/urls/post_logout_redirect="<https://example.com>"'
value and can see it has updated:gray-shoe-60285
09/15/2023, 8:36 AMpost_logout_redirect_uri
parameter in the logout request.gray-shoe-60285
09/15/2023, 8:38 AMpost_logout_redirect_uris
and may be missing how this would work with the example you shared?
ory patch project <project-id> --replace '/services/oauth2/config/urls/post_logout_redirect="<https://example.com>"'
gray-shoe-60285
09/15/2023, 8:42 AMpost_logout_redirect_uris:
- <https://local.example.com:3000/oauth>
- <https://app.example.com/oauth>
but this is just ignored when I use the update command?gray-shoe-60285
09/15/2023, 8:44 AMproud-plumber-24205
09/15/2023, 8:51 AMpost_logout_redirect_uris
list and the project config needs to add the post_logout_redirect_uri
value.
https://www.ory.sh/docs/oauth2-oidc/oidc-logout#redirect-after-logoutgray-shoe-60285
09/15/2023, 9:58 AMpost_logout_redirect_uris
on the client It doesnt look like you can use the ory CLI? https://www.ory.sh/docs/hydra/guides/oauth2-clients#patch-oauth2-clientgray-shoe-60285
09/15/2023, 10:11 AMpost_logout_redirect_uris
list, but the CLI doesn't have this flag? I can see you can include post_logout_redirect_uris
when using the API? https://www.ory.sh/docs/reference/api#tag/oAuth2/operation/createOAuth2Client
Is this a limitation of the ory CLI?proud-plumber-24205
09/15/2023, 11:58 AMpost_logout_redirect_uris
flag in the CLI. https://github.com/ory/hydra/blob/master/cmd/cmd_create_client.go
I will create an issue and see to add it. Sorry about this inconvenience 🙇♂️proud-plumber-24205
09/15/2023, 12:07 PMgray-shoe-60285
09/19/2023, 10:32 AMcareful-rain-13694
10/18/2023, 7:57 AMpost_logout_redirect_uris
. I've also noticed we could use the HTTP API to patch the oauth client (https://www.ory.sh/docs/reference/api#tag/oAuth2/operation/patchOAuth2Client) where we could update this configuration. I've tried doing it but I got a HTTP 500 while trying to do so:
curl --request PATCH \
--url https://{project_slug}.<http://projects.oryapis.com/admin/clients/{clientId}|projects.oryapis.com/admin/clients/{clientId}> \
--header 'Authorization: Bearer XXX' \
--header 'Content-Type: application/json' \
--data '[
{
"op": "add",
"path": "/post_logout_redirect_uris",
"value": "whatever"
}
]'
Is there any way we could do this from the Ory HTTP API (as an alternative to using the CLI)?