Module: EasyAuth::Oauth2::Routes

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

Instance Method Summary collapse

Instance Method Details

#easy_auth_oauth2_routesObject



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

def easy_auth_oauth2_routes
  get  '/sign_in/oauth2/:provider'          => 'sessions#new',    :as => :oauth2_sign_in,  :defaults => { :identity => :oauth2 }
  get  '/sign_in/oauth2/:provider/callback' => 'sessions#create', :as => :oauth2_callback, :defaults => { :identity => :oauth2 }
end