From efbf42f6983a0c2eba8140c77390835af23bab35 Mon Sep 17 00:00:00 2001 From: Joshua Arts Date: Fri, 29 Jun 2018 16:18:00 -0400 Subject: [PATCH] remove unused launch route --- app/controllers/sessions_controller.rb | 12 ------------ config/routes.rb | 3 --- 2 files changed, 15 deletions(-) diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index af6f531b..41a623d8 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -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']) diff --git a/config/routes.rb b/config/routes.rb index 924b1191..0b791d70 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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'