Hi, I use Ory network and I am struggling to confi...
# ory-network
w
Hi, I use Ory network and I am struggling to configure the OAuth2 logout redirect properly. I always get the error
Logout failed because query parameter post_logout_redirect_uri is not a whitelisted as a post_logout_redirect_uri for the client
I tried to find a solution in the docs, but it is not clear to me where to whitelist the logout URL of my application. I tried to set the urls.post_logout_redirect in the oauth2-config without success. In the docs and in Slack it’s sometimes mentioned to add the url in a property post_logout_redirect_uris (with ‘s’) in the OAuth2 client. But I cannot find this property in the Ory console. Again, the docs are totally confusing and unclear.
r
Try this:
Copy code
ory update oauth2-client --project ${PROJECT_ID} ${OAUTH_CLIENT_ID} --redirect-uri '<https://example.org>'  --post-logout-callback '<https://example.org?log=out>'
w
Okay, that seems to fix it. But again: The documentation is really bad here and I also think that the Console UI and CLI is not consistent: • Ory Console UI does not allow to set the post-logout-callback • Docs talk about ‘post_logout_redirect_uri’, but in the CLI its named ‘post-logout-callback’. Very inconsistent • Seems that ‘ory update oauth2-client’ does not support passing a file (yaml/json) like in ‘ory update oauth2-config’, so you have to be careful to not mess up your client (as I did with the command you proposed above, because it seems that ‘ory update oauth2-client’ OVERWRITES the client:-( In the meantime I am pretty annoyed about the inconsistent/incomplete/incorrect/misleading docs of Ory. Trial and error mode all the time.