forked from External/greenlight
remove unused launch route
This commit is contained in:
parent
924ba7256b
commit
efbf42f698
|
@ -19,18 +19,6 @@ class SessionsController < ApplicationController
|
|||
end
|
||||
end
|
||||
|
||||
# POST /launch
|
||||
def launch
|
||||
# This will recieve a encoded POST from a launcher that
|
||||
# contains the provider, and all user information. The
|
||||
# launcher is what does the authentication, so we know
|
||||
# that the user is who they say they are. We just need
|
||||
# to use our secret to decode it and then log them in
|
||||
# to GreenLight (or sign them up).
|
||||
|
||||
# User.from_launch()
|
||||
end
|
||||
|
||||
# GET/POST /auth/:provider/callback
|
||||
def omniauth
|
||||
user = User.from_omniauth(request.env['omniauth.auth'])
|
||||
|
|
|
@ -24,9 +24,6 @@ Rails.application.routes.draw do
|
|||
patch '/:user_uid/edit', to: 'users#update', as: :update_user
|
||||
end
|
||||
|
||||
# Handles launches from a trusted launcher.
|
||||
post '/launch', to: 'sessions#launch'
|
||||
|
||||
# Handles Omniauth authentication.
|
||||
match '/auth/:provider/callback', to: 'sessions#omniauth', via: [:get, :post], as: :omniauth_session
|
||||
get '/auth/failure', to: 'sessions#fail'
|
||||
|
|
Loading…
Reference in New Issue