├── .github └── workflows │ └── test.yml ├── .gitignore ├── .rspec ├── Appraisals ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── Gemfile ├── LICENSE ├── README.md ├── Rakefile ├── doc ├── .gitkeep └── README.md ├── gemfiles ├── rails_4_devise_3.gemfile ├── rails_5_devise_4.gemfile ├── rails_6_devise_4.gemfile ├── rails_7_devise_4.gemfile ├── rails_8_devise_4.gemfile └── ruby_1.9.3_rails_3.2.gemfile ├── lib ├── simple_token_authentication.rb └── simple_token_authentication │ ├── acts_as_token_authenticatable.rb │ ├── acts_as_token_authentication_handler.rb │ ├── adapter.rb │ ├── adapters │ ├── active_record_adapter.rb │ ├── mongoid_adapter.rb │ ├── rails_adapter.rb │ ├── rails_api_adapter.rb │ └── rails_metal_adapter.rb │ ├── configuration.rb │ ├── devise_fallback_handler.rb │ ├── entities_manager.rb │ ├── entity.rb │ ├── errors.rb │ ├── exception_fallback_handler.rb │ ├── sign_in_handler.rb │ ├── token_authentication_handler.rb │ ├── token_comparator.rb │ ├── token_generator.rb │ └── version.rb ├── simple_token_authentication.gemspec └── spec ├── configuration ├── action_controller_callbacks_options_spec.rb ├── fallback_to_devise_option_spec.rb ├── header_names_option_spec.rb ├── sign_in_token_option_spec.rb └── skip_devise_trackable_option_spec.rb ├── lib ├── simple_token_authentication │ ├── acts_as_token_authenticatable_spec.rb │ ├── acts_as_token_authentication_handler_spec.rb │ ├── adapter_spec.rb │ ├── adapters │ │ ├── active_record_adapter_spec.rb │ │ ├── mongoid_adapter_spec.rb │ │ ├── rails_adapter_spec.rb │ │ ├── rails_api_adapter_spec.rb │ │ └── rails_metal_adapter_spec.rb │ ├── configuration_spec.rb │ ├── devise_fallback_handler_spec.rb │ ├── entities_manager_spec.rb │ ├── entity_spec.rb │ ├── errors_spec.rb │ ├── exception_fallback_handler_spec.rb │ ├── sign_in_handler_spec.rb │ ├── token_authentication_handler_spec.rb │ ├── token_comparator_spec.rb │ └── token_generator_spec.rb └── simple_token_authentication_spec.rb ├── spec_helper.rb └── support ├── .keep ├── dummy_classes_helper.rb ├── spec_for_adapter.rb ├── spec_for_authentication_handler_interface.rb ├── spec_for_configuration_option_interface.rb ├── spec_for_entities_manager_interface.rb ├── spec_for_fallback_handler_interface.rb ├── spec_for_sign_in_handler_interface.rb ├── spec_for_token_comparator_interface.rb ├── spec_for_token_generator_interface.rb └── specs_for_token_authentication_handler_interface.rb /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --format documentation 3 | --order rand 4 | -------------------------------------------------------------------------------- /Appraisals: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/Appraisals -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/Rakefile -------------------------------------------------------------------------------- /doc/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /doc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/doc/README.md -------------------------------------------------------------------------------- /gemfiles/rails_4_devise_3.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/gemfiles/rails_4_devise_3.gemfile -------------------------------------------------------------------------------- /gemfiles/rails_5_devise_4.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/gemfiles/rails_5_devise_4.gemfile -------------------------------------------------------------------------------- /gemfiles/rails_6_devise_4.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/gemfiles/rails_6_devise_4.gemfile -------------------------------------------------------------------------------- /gemfiles/rails_7_devise_4.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/gemfiles/rails_7_devise_4.gemfile -------------------------------------------------------------------------------- /gemfiles/rails_8_devise_4.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/gemfiles/rails_8_devise_4.gemfile -------------------------------------------------------------------------------- /gemfiles/ruby_1.9.3_rails_3.2.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/gemfiles/ruby_1.9.3_rails_3.2.gemfile -------------------------------------------------------------------------------- /lib/simple_token_authentication.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/acts_as_token_authenticatable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/acts_as_token_authenticatable.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/acts_as_token_authentication_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/acts_as_token_authentication_handler.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/adapter.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/adapters/active_record_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/adapters/active_record_adapter.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/adapters/mongoid_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/adapters/mongoid_adapter.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/adapters/rails_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/adapters/rails_adapter.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/adapters/rails_api_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/adapters/rails_api_adapter.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/adapters/rails_metal_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/adapters/rails_metal_adapter.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/configuration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/configuration.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/devise_fallback_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/devise_fallback_handler.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/entities_manager.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/entities_manager.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/entity.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/entity.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/errors.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/errors.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/exception_fallback_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/exception_fallback_handler.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/sign_in_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/sign_in_handler.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/token_authentication_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/token_authentication_handler.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/token_comparator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/token_comparator.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/token_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/lib/simple_token_authentication/token_generator.rb -------------------------------------------------------------------------------- /lib/simple_token_authentication/version.rb: -------------------------------------------------------------------------------- 1 | module SimpleTokenAuthentication 2 | VERSION = "1.18.1".freeze 3 | end 4 | -------------------------------------------------------------------------------- /simple_token_authentication.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/simple_token_authentication.gemspec -------------------------------------------------------------------------------- /spec/configuration/action_controller_callbacks_options_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/configuration/action_controller_callbacks_options_spec.rb -------------------------------------------------------------------------------- /spec/configuration/fallback_to_devise_option_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/configuration/fallback_to_devise_option_spec.rb -------------------------------------------------------------------------------- /spec/configuration/header_names_option_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/configuration/header_names_option_spec.rb -------------------------------------------------------------------------------- /spec/configuration/sign_in_token_option_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/configuration/sign_in_token_option_spec.rb -------------------------------------------------------------------------------- /spec/configuration/skip_devise_trackable_option_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/configuration/skip_devise_trackable_option_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/acts_as_token_authenticatable_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/acts_as_token_authenticatable_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/acts_as_token_authentication_handler_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/acts_as_token_authentication_handler_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/adapter_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/adapter_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/adapters/active_record_adapter_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/adapters/active_record_adapter_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/adapters/mongoid_adapter_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/adapters/mongoid_adapter_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/adapters/rails_api_adapter_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/adapters/rails_api_adapter_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/adapters/rails_metal_adapter_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/adapters/rails_metal_adapter_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/configuration_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/configuration_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/devise_fallback_handler_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/devise_fallback_handler_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/entities_manager_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/entities_manager_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/entity_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/entity_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/errors_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/errors_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/exception_fallback_handler_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/exception_fallback_handler_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/sign_in_handler_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/sign_in_handler_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/token_authentication_handler_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/token_authentication_handler_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/token_comparator_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/token_comparator_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication/token_generator_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication/token_generator_spec.rb -------------------------------------------------------------------------------- /spec/lib/simple_token_authentication_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/lib/simple_token_authentication_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/support/dummy_classes_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/support/dummy_classes_helper.rb -------------------------------------------------------------------------------- /spec/support/spec_for_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/support/spec_for_adapter.rb -------------------------------------------------------------------------------- /spec/support/spec_for_authentication_handler_interface.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/support/spec_for_authentication_handler_interface.rb -------------------------------------------------------------------------------- /spec/support/spec_for_configuration_option_interface.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/support/spec_for_configuration_option_interface.rb -------------------------------------------------------------------------------- /spec/support/spec_for_entities_manager_interface.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/support/spec_for_entities_manager_interface.rb -------------------------------------------------------------------------------- /spec/support/spec_for_fallback_handler_interface.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/support/spec_for_fallback_handler_interface.rb -------------------------------------------------------------------------------- /spec/support/spec_for_sign_in_handler_interface.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/support/spec_for_sign_in_handler_interface.rb -------------------------------------------------------------------------------- /spec/support/spec_for_token_comparator_interface.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/support/spec_for_token_comparator_interface.rb -------------------------------------------------------------------------------- /spec/support/spec_for_token_generator_interface.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/support/spec_for_token_generator_interface.rb -------------------------------------------------------------------------------- /spec/support/specs_for_token_authentication_handler_interface.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalo-bulnes/simple_token_authentication/HEAD/spec/support/specs_for_token_authentication_handler_interface.rb --------------------------------------------------------------------------------