I use omniauth without creating for authentication, as I like simplicity. In addition to omniauth-facebook, I use omniauth-identity to provide email / pw authentication.
railscast on omniauth-identity describes how to set up a custom registration and login page. But the default routes provided by the identifier (/ auth / identity and / auth / identity / register) are still available.
I would like them to be under my control, as I want only want the invited users to register. Is there a way to redefine the routes provided by the rack middleware?
The attempt is simple
match "/auth/identity", to: "somewhere#else"
doesn't do the trick!
Maybe the configuration will disable these routes by default? The documentation does not give any details about this ...
Unfortunately, I'm pretty new to Rack, so I donβt have enough information to solve this problem myself!
I would be happy if someone could point me in the right direction!
source share