added token based authentication, switch to api-only mode
Showing
with
225 additions
and
40 deletions
... | @@ -34,6 +34,8 @@ gem 'sdoc', '~> 0.4.0', group: :doc | ... | @@ -34,6 +34,8 @@ gem 'sdoc', '~> 0.4.0', group: :doc |
gem 'httparty' | gem 'httparty' | ||
gem 'rack-cors' | gem 'rack-cors' | ||
gem 'devise_token_auth' | |||
gem 'omniauth' | |||
group :development, :test do | group :development, :test do | ||
# Call 'byebug' anywhere in the code to stop execution and get a debugger console | # Call 'byebug' anywhere in the code to stop execution and get a debugger console | ||
... | @@ -48,9 +50,6 @@ group :development, :test do | ... | @@ -48,9 +50,6 @@ group :development, :test do |
gem 'cucumber-rails', require: false | gem 'cucumber-rails', require: false | ||
gem 'database_cleaner' | gem 'database_cleaner' | ||
gem 'tzinfo-data' | gem 'tzinfo-data' | ||
end | |||
group :development, :test do | |||
gem 'guard' | gem 'guard' | ||
gem 'guard-rspec' | gem 'guard-rspec' | ||
gem 'spring-commands-rspec' | gem 'spring-commands-rspec' | ||
... | @@ -58,18 +57,16 @@ group :development, :test do | ... | @@ -58,18 +57,16 @@ group :development, :test do |
gem 'terminal-notifier' | gem 'terminal-notifier' | ||
end | end | ||
group :development do | # NOTE: install mailcatcher for development | ||
gem 'guard-rubocop' | |||
end | |||
group :test do | |||
gem 'simplecov', :require => false | |||
end | |||
group :development do | group :development do | ||
gem 'guard-rubocop' | |||
# Access an IRB console on exception pages or by using <%= console %> in views | # Access an IRB console on exception pages or by using <%= console %> in views | ||
gem 'web-console', '~> 2.0' | gem 'web-console', '~> 2.0' | ||
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring | # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring | ||
gem 'spring' | gem 'spring' | ||
end | end | ||
group :test do | |||
gem 'simplecov', :require => false | |||
end |
app/models/user.rb
0 → 100644
config/initializers/devise.rb
0 → 100644
config/initializers/devise_token_auth.rb
0 → 100644
Please
register
or
sign in
to comment