module Spid::Rails::RouteHelper
Public Instance Methods
metadata_path()
click to toggle source
# File lib/spid-rails/route_helper.rb, line 4 def metadata_path Spid.configuration.metadata_path end
metadata_url()
click to toggle source
# File lib/spid-rails/route_helper.rb, line 8 def metadata_url URI.join( Spid.configuration.hostname, metadata_path ).to_s end
spid_login_path( idp_name:, authn_context: nil, attribute_service_index: nil )
click to toggle source
# File lib/spid-rails/route_helper.rb, line 15 def spid_login_path( idp_name:, authn_context: nil, attribute_service_index: nil ) options = { idp_name: idp_name } options[:authn_context] = authn_context if authn_context.present? options[:attribute_service_index] = attribute_service_index if attribute_service_index.present? [ Spid.configuration.login_path, options.to_param ].join('?') end
spid_login_url(options)
click to toggle source
# File lib/spid-rails/route_helper.rb, line 37 def spid_login_url(options) URI.join( Spid.configuration.hostname, spid_login_path(options) ).to_s end
spid_logout_path(idp_name:)
click to toggle source
# File lib/spid-rails/route_helper.rb, line 29 def spid_logout_path(idp_name:) options = { idp_name: idp_name } [ Spid.configuration.logout_path, options.to_param ].join('?') end
spid_logout_url(options)
click to toggle source
# File lib/spid-rails/route_helper.rb, line 44 def spid_logout_url(options) URI.join( Spid.configuration.hostname, spid_logout_path(options) ).to_s end