fastruby / ombu_labs-auth

A Ruby gem to make authentication easier for OmbuLabs' tools and web applications
MIT License
4 stars 0 forks source link

Configure Devise as mountable Engine (working in Points) #4

Closed tiagocasanovapt closed 2 years ago

tiagocasanovapt commented 2 years ago

At the current state, the gem is rendering the views from Devise (_@ /users/signin) but the login controller is not being processed (@ /users/auth/developer)

tiagocasanovapt commented 2 years ago

Working as a mounted engine with controllers + models + views, but.... 🧐

....still 1 bug remaining at db26656, the command sign_in_and_redirect @user is trying to use the root route from the main app which is not recognized by the current Devise context

tiagocasanovapt commented 2 years ago

Added the base URL from the main app as a redirect from the Devise sign in, to force the gem to redirect to its root, as you can see here - https://github.com/fastruby/ombu_labs-auth/pull/3/commits/d9f6ad277272f89db922c9c8d9bf1e33570fbf75

☝️@etagwerker (EDIT: or let me know if I should tag someone else) please check for some feedback

tiagocasanovapt commented 2 years ago

Closed by #2