Module: EasyAuth::Oauth::Routes

Defined in:
lib/easy_auth/oauth/routes.rb

Instance Method Summary collapse

Instance Method Details

#easy_auth_oauth_routesObject



2
3
4
5
# File 'lib/easy_auth/oauth/routes.rb', line 2

def easy_auth_oauth_routes
  get  '/sign_in/oauth/:provider'          => 'sessions#new',    :as => :oauth_sign_in,  :defaults => { :identity => :oauth }
  get  '/sign_in/oauth/:provider/callback' => 'sessions#create', :as => :oauth_callback, :defaults => { :identity => :oauth }
end