blob: 266d6d520dca2c9c9da501dcda4e504942295b28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
class IdentityProvidersController < ApplicationController
def show
metadatum = Metadatum.find(params[:id])
render xml: metadatum.to_xml
end
def new
end
def create
Saml::Kit.registry.register_url(params[:url], verify_ssl: Rails.env.production?)
end
def update
metadatum = Metadatum.find(params[:id])
Saml::Kit.registry.register_url(metadatum.url, verify_ssl: Rails.env.production?)
redirect_to providers_path
end
def destroy
metadatum = Metadatum.find(params[:id])
metadatum.destroy!
redirect_to providers_path
end
end
|