Revert "oidc: allow post logout redirect back to the app"

This reverts commit 3ddf72a24d.
This commit is contained in:
Johannes Zellner
2024-04-04 10:40:53 +02:00
parent a4e822dec2
commit 6186bb54e4
-3
View File
@@ -294,9 +294,6 @@ class CloudronAdapter {
// prefix login redirect uris with app.fqdn if it is just a path without a schema
// native callbacks for apps have custom schema like app.immich:/
tmp.redirect_uris = client.loginRedirectUri.split(',').map(s => s.trim()).map(s => url.parse(s).protocol ? s : `https://${app.fqdn}${s}`);
// TODO this may need to come from the manifest like loginRedirectUri, but we have to first check other client implementations
tmp.post_logout_redirect_uris = [ `https://${app.fqdn}` ];
} else {
tmp.redirect_uris = client.loginRedirectUri.split(',').map(s => s.trim());
}