trestle icon indicating copy to clipboard operation
trestle copied to clipboard

Using both trestle-auth and trestle-omniauth on the same application gives error

Open EMRJ opened this issue 5 years ago • 1 comments

Is there anyway I can use both trestle-auth and trestle-omniauth gem, if I added both then I got error like

: Invalid route name, already in use: 'login' (ArgumentError) You may have defined two routes with the same name using the :as option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with resources as explained here: https://guides.rubyonrails.org/routing.html#restricting-the-routes-created

EMRJ avatar Jun 05 '20 03:06 EMRJ

As it currently stands, trestle-auth and trestle-omniauth aren't designed to work in conjunction. It is either-or.

Would you be able to describe your use case here? (I'm guessing password-based login + third-party oauth?) Then we can look into whether there needs to be functionality added to one (or both) libraries.

spohlenz avatar Aug 03 '20 03:08 spohlenz