Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(oauth2): allow custom URL schemes in redirect URIs (#18898)
p0nydfe90258a52f
diff --git a/backend/api/oauth2/register.go b/backend/api/oauth2/register.goindex 8290f04c31..454cd0afc4 100644--- a/backend/api/oauth2/register.go+++ b/backend/api/oauth2/register.go@@ -49,9 +49,9 @@ func (s *Service) handleRegister(c echo.Context) error {if err != nil {return oauth2Error(c, http.StatusBadRequest, "invalid_redirect_uri", "invalid redirect URI format")}- // Require HTTPS except for localhost- if parsed.Scheme != "https" && !isLocalhostURI(uri) {- return oauth2Error(c, http.StatusBadRequest, "invalid_redirect_uri", "redirect URI must use HTTPS (except localhost)")+ // Reject plain HTTP except for localhost (allow HTTPS and custom schemes like cursor://, vscode://)+ if parsed.Scheme == "http" && !isLocalhostURI(uri) {+ return oauth2Error(c, http.StatusBadRequest, "invalid_redirect_uri", "http:// redirect URIs are only allowed for localhost")}}