Module: Bsm::Sso::Client::UrlHelpers
- Included in:
- FailureApp, Strategies::Ticket
- Defined in:
- lib/bsm/sso/client/url_helpers.rb
Instance Method Summary collapse
Instance Method Details
#service_url(path = request.fullpath) ⇒ Object
2 3 4 5 |
# File 'lib/bsm/sso/client/url_helpers.rb', line 2 def service_url(path=request.fullpath) part = Regexp.escape({ ticket: params.fetch(:ticket, '') }.to_query) request.base_url + path.sub(/#{part}\&?/, '').chomp('&').chomp('?') end |