Sha256: 971009273ef865cef8161b494ffd36bc31987d685a08972bd9c0c30dcb5c4263
Contents?: true
Size: 404 Bytes
Versions: 1
Compression:
Stored size: 404 Bytes
Contents
module DeviseIosRails class OauthController < ApplicationController skip_before_action :verify_authenticity_token respond_to :json def all respond_with User.from_oauth(user_params) end alias_method :facebook, :all alias_method :google, :all private def user_params params.require(:user).permit(:email, :provider, :uid, :oauth_token) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
devise-ios-rails-1.0.1 | app/controllers/devise_ios_rails/oauth_controller.rb |