remove unused launch route

This commit is contained in:
Joshua Arts 2018-06-29 16:18:00 -04:00
parent 924ba7256b
commit efbf42f698
2 changed files with 0 additions and 15 deletions

View File

@ -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'])

View File

@ -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'