Sha256: a7d298b9e4160a818149a081ff1b31beaae6b3f4af14eb941a185a7ccba429ca

Contents?: true

Size: 374 Bytes

Versions: 7

Compression:

Stored size: 374 Bytes

Contents

# frozen_string_literal: true

module NulogySSO
  module OriginRedirector
    extend self

    def authentication_redirect_uri(previous_request_uri)
      if previous_request_uri.blank?
        sso_config.login_uri
      else
        "#{sso_config.login_uri}?origin=#{CGI::escape(previous_request_uri)}"
      end
    end

    delegate :sso_config, to: :NulogySSO
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nulogy_sso-2.5.1 app/services/nulogy_sso/origin_redirector.rb
nulogy_sso-2.5.0 app/services/nulogy_sso/origin_redirector.rb
nulogy_sso-2.4.0 app/services/nulogy_sso/origin_redirector.rb
nulogy_sso-2.3.1 app/services/nulogy_sso/origin_redirector.rb
nulogy_sso-2.3.0 app/services/nulogy_sso/origin_redirector.rb
nulogy_sso-2.2.0 app/services/nulogy_sso/origin_redirector.rb
nulogy_sso-2.1.3 app/services/nulogy_sso/origin_redirector.rb