calm-controller-73297
01/22/2023, 5:32 PMredirect_uri_mismatch
error"... can we not use custom domains for the callback?wonderful-lamp-2357
01/22/2023, 9:57 PMcalm-controller-73297
01/22/2023, 10:17 PMThe request was malformed or contained invalid parameters
Unable to apply JSON Patch: error in remove for path: '/services/identity/config/selfservice/methods/oidc/config/base_redirect_uri': Unable to remove nonexistent key: base_redirect_uri: missing value
proud-plumber-24205
01/23/2023, 8:56 AMmagnificent-energy-493
calm-controller-73297
01/23/2023, 5:11 PMrhythmic-musician-58953
01/23/2023, 9:14 PMredirect_uri_mismatch
as well, but that's when I use our custom domain in the OAuth apps callback URL. For some reason, the request to GitHub is made with the redirect_uri
set to <http://oryapis.com|oryapis.com>
, even though we have a custom domain configured.
In the project config, I can still see the following fields set to <http://oryapis.com|oryapis.com>
URL:
⢠../serve/admin/base_url
⢠../serve/public/base_url
⢠../config/cookies/domain
⢠../session/cookie/domain
Are any of these supposed to be set to the custom domain?
/services/identity/config/selfservice/methods/oidc/config/base_redirect_uri
is not in the config, trying the solution in the docs returns Unable to remove nonexistent key: base_redirect_uri: missing value
calm-controller-73297
01/24/2023, 2:06 AMrhythmic-musician-58953
01/24/2023, 2:07 AMproud-plumber-24205
01/24/2023, 10:15 AMserve.admin.base_url
and serve.public.base_url
to be your project slug + oryapis.com url. This shouldn't affect redirects through your cname.
Inside my config the methods.oidc.base_redirect_uri
is my custom domain url.
Do you perhaps have multiple domains added to the project?rhythmic-musician-58953
01/24/2023, 2:05 PMbase_redirect_uri
using
ory patch identity-config <project-id> \
--add '/selfservice/methods/oidc/config/base_redirect_uri="<https://auth.example.org>"'
solved this šcalm-controller-73297
01/24/2023, 10:24 PMbase_redirect_uri
solved this for me as well!