Git Product home page Git Product logo

tokenable / tokenable-ruby Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 1.0 96 KB

Tokenable is a Rails gem that allows API-only applications a way to authenticate users. This can be helpful when building Single Page Applications, or Mobile Applications. Works with Devise, Sorcery, has_secure_password, and any other auth system you may want to use.

License: MIT License

Ruby 98.29% Shell 0.25% HTML 1.46%
authentification api rails

tokenable-ruby's People

Contributors

marcqualie avatar scottrobertson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sztheory

tokenable-ruby's Issues

Release to rubygems

We need to release this to rubygems, but right now tokenable is taken. So for now, we should rename this to tokenable-ruby?

Expose token_from_user for use in tests

I'm currently integration tokenable into a rails app and want to write tests to check for valid vs invalid tokens and the responses.

Currently I can't find an easy way to generate a valid token for a user since the token_from_user method is inside the controller.

User class is autoloaded too early

DEPRECATION WARNING: Initialization autoloaded the constants ApplicationRecord and User.

Being able to do this is deprecated. Autoloading during initialization is going
to be an error condition in future versions of Rails.

Reloading does not reboot the application, and therefore code executed during
initialization does not run again. So, if you reload ApplicationRecord, for example,
the expected changes won't be reflected in that stale Class object.

These autoloaded constants have been unloaded.

Please, check the "Autoloading and Reloading Constants" guide for solutions.
 (called from <top (required)> at config/environment.rb:5)

An error occurred in a `before(:suite)` hook.

I think this is caused by the initializer from the generator:

Tokenable::Config.user_class = User

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.