Commit eb710f9
Changed files (2)
app
controllers
config
app/controllers/sessions_controller.rb
@@ -1,4 +1,5 @@
class SessionsController < ApplicationController
+ skip_before_action :verify_authenticity_token, only: [:new]
before_action :validate_saml_request, only: [:new, :create]
def new
config/routes.rb
@@ -1,6 +1,7 @@
Rails.application.routes.draw do
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
resource :session, only: [:new, :create, :destroy]
+ post "/session/new" => "sessions#new"
resource :metadata, only: [:show]
root to: "sessions#new"
end