[openstreetmap/openstreetmap-website] Facebook deletion callback (PR #7093)

Pablo Brasero notifications at github.com
Mon Jun 29 22:09:55 UTC 2026


@pablobm commented on this pull request.



> @@ -233,9 +233,16 @@
   get "/forgot-password.html", :to => redirect(:path => "/user/forgot-password")
 
   # omniauth
-  get "/auth/failure" => "users#auth_failure"
-  match "/auth/:provider/callback" => "users#auth_success", :via => [:get, :post], :as => :auth_success
-  match "/auth/:provider" => "users#auth", :via => [:post, :patch], :as => :auth
+  scope "/auth", :as => :auth do
+    get "/failure" => "users#auth_failure"
+
+    scope ":provider" do
+      match "/callback" => "users#auth_success", :via => [:get, :post], :as => :success
+      match "" => "users#auth", :via => [:post, :patch]
+
+      resource :delete, :only => [:show, :create], :module => "accounts", :controller => "auth_deletions"

Is it possible to tell Facebook to put it in the parameter? I guess it could work. I just learned about Base64URL for the first time and I see it should be ok there (no slash `/` or anything that could confuse the router).

But if not, I think `resource :deletions`, with a comment to explain the situation, should be ok.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7093#discussion_r3494984807
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/7093/review/4595730358 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260629/86b0ef47/attachment-0001.htm>


More information about the rails-dev mailing list