Code Monkey home page Code Monkey logo

Comments (3)

gonzalo-bulnes avatar gonzalo-bulnes commented on May 23, 2024

Hello @smarquez1,

That's true, the idea was discussed here. A dummy app is used to test differents aspects of the gem behaviour. That app is generated automatically during each scenario, following a recipe (usage, source) which, at this point, is adapted for a Rails application. A Rails API recipe is what is missing at this point to make a release possible.

If you could adapt that recipe, it would make a very nice -and very welcome- PR. Adding support for Rails API is something that has been around for a time now and I would be glad to help you with the Cucumber scenario if necessary.

Regards!

from simple_token_authentication.

rapito avatar rapito commented on May 23, 2024

Hi there,

I forked @mediateinment _mongoid_ supporting repo and added rails-api support with @smarquez1 suggestions:

ActionController::API.send :include, SimpleTokenAuthentication::ActsAsTokenAuthenticationHandler  

For me it's working OK, you can get it here.

Plus, I added the ability to pass options to before_filter on ActsAsTokenAuthenticationHandler.

from simple_token_authentication.

gonzalo-bulnes avatar gonzalo-bulnes commented on May 23, 2024

Hi @rapito,

Thanks for the PR, however, in order to add both Mongoid and Rails API support, what is missing is testing. Your help would be welcome in both these topics, but I can't accept your PR as-is.

The discussions reated to the Mongoid support are gathered in #38, those related to Rails API in #54.
Please keep the topics separated, that helps in maintaining the documentation searchable as it grows. ; )

Regards!

from simple_token_authentication.

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.