Commit 392cea28 authored by o's avatar o
Browse files

add saml metadata display

parent 6b962065
......@@ -84,6 +84,9 @@ module ApiBackend
nil
end
def self.saml_metadata
get(['auth', 'saml_metadata'],{})['metadata']
end
def self.pre_auth(email)
if EmailValidation::immerda_email_conform(email)
......
......@@ -5,4 +5,9 @@ class MainController < ApplicationController
end
@logged_in = where_am_i_logged_in
end
def saml_metadata
@saml_metadata = ApiBackend::saml_metadata()
render '_saml_metadata', layout: false
end
end
Rails.application.routes.draw do
root to: 'main#show'
get '/saml_metadata', to: 'main#saml_metadata'
get '/login/saml', to: 'saml_login#new'
post '/login/saml', to: 'saml_login#login'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment