clean-chef-65781
03/12/2025, 10:39 AMLogout failed because query parameter post_logout_redirect_uri is not a whitelisted as a post_logout_redirect_uri for the client."
however it is whitelisted ??
I'm passing http://localhost:8080/ as post_logout_redirect_uri. (which should be fine, this oauth2 client is used for local development.
logout_url <https://adoring-mirzakhani-4rdx4fqc5a.projects.oryapis.com/oauth2/sessions/logout?id_token_hint=eyJ..snipped..&post_logout_redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F>
The oauth2 clients has that explicityly in post_logout_redirect_uris
$ ory get oauth2-client 01a08ad6-0a5d-4e24-9e37-48e8fe7de1b6 --format json | jq
{
"client_id": "01a08ad6-0a5d-4e24-9e37-48e8fe7de1b6",
"client_name": "local development (runserver)",
"client_secret_expires_at": 0,
"client_uri": "",
"created_at": "2025-02-27T10:51:57Z",
"grant_types": [
"authorization_code"
],
"jwks": {},
"logo_uri": "",
"metadata": {},
"owner": "",
"policy_uri": "",
"post_logout_redirect_uris": [
"<http://localhost:8080>", <---- Just to be sure, we add with and without '/'
"<http://localhost:8080/>" <---- See its here
],
"redirect_uris": [
"<http://localhost:8000/account/authorize/>", <---- used for login, all good.
"<http://localhost:8080/>",
"<http://localhost:8080>"
],
"response_types": [
"code",
"id_token"
],
Whats are we missing?
(testing with non 'localhost' but 'real' urls, does not help)
(testing with passwing a random state= to the logout url does not help)high-optician-2097
clean-chef-65781
03/12/2025, 2:39 PM{
"amr": [
"password"
],
"at_hash": "fkapWA1T_pVHHghFBbV8Ew",
"aud": [
"01a08ad6-0a5d-4e24-9e37-48e8fe7de1b6"
],
"auth_time": 1741779861,
"email": "*****edited***",
"email_verified": true,
"exp": 1741783551,
"family_name": "**edited**",
"given_name": "**edited**",
"iat": 1741779951,
"iss": "<https://adoring-mirzakhani-4rdx4fqc5a.projects.oryapis.com>",
"jti": "47796962-e5f5-4a45-89f7-b91098a9b217",
"nonce": "pfMzLBPK98TNfrECBnf4",
"preferred_username": "hve",
"rat": 1741779949,
"sid": "9ea05b58-23b7-42cc-8a45-340419eaf80b",
"sub": "125ba2f2-86ee-42d9-9a83-a29450f96e92",
"updated_at": 1741251937
}
clean-chef-65781
03/12/2025, 2:40 PM<edit> removed raw token_id
high-optician-2097
high-optician-2097
clean-chef-65781
03/12/2025, 3:35 PMclean-chef-65781
03/12/2025, 3:36 PMclean-chef-65781
03/12/2025, 3:46 PMclean-chef-65781
03/12/2025, 3:48 PMclean-chef-65781
03/12/2025, 3:50 PMclean-chef-65781
03/12/2025, 3:53 PMmagnificent-energy-493