Giter VIP home page Giter VIP logo

Comments (7)

lynndylanhurley avatar lynndylanhurley commented on August 26, 2024

I agree that this would be nice. How would you feel about something like this?

Auth controller override:

  mount_devise_token_auth_for 'User', at: '/auth', controllers: {
    auth: 'my_project/auth'
  }

The above example would assume that there's a controller called /app/controllers/my_project/auth_controller.rb that inherits from DeviseTokenAuth::AuthController.

This would allow for overrides on the sessions, registrations, confirmations, and passwords controllers as well.

from devise_token_auth.

smarquez1 avatar smarquez1 commented on August 26, 2024

That looks very good to me!

from devise_token_auth.

lynndylanhurley avatar lynndylanhurley commented on August 26, 2024

Cool, I'll get started on this as soon as I get a chance.

from devise_token_auth.

lynndylanhurley avatar lynndylanhurley commented on August 26, 2024

I just pushed support for controller overrides. I'll update the docs and push a release tomorrow afternoon.

from devise_token_auth.

smarquez1 avatar smarquez1 commented on August 26, 2024

Thx Lynn! will test it ASAP.

from devise_token_auth.

lynndylanhurley avatar lynndylanhurley commented on August 26, 2024

Version 0.1.29.beta1 has support for this. Documentation is here.

Note that I broke out what was previously AuthController into two separate controllers, OmniauthCallbacksController and TokenValidationsController.

from devise_token_auth.

smarquez1 avatar smarquez1 commented on August 26, 2024

Perfect! Thx Lynn!

from devise_token_auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.