Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion app/services/service_provider_request_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ def initialize(url:, session:, protocol_request:, protocol:)
end

def call
return if sp_url_stored_in_session == url
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has the same vibes as the change here that was fixed here. This should still allow for the same service provider with differing nonces (or other attributes).


pull_request_id_from_current_sp_session_id

delete_sp_request_if_session_has_matching_request_id
Expand Down Expand Up @@ -34,8 +36,17 @@ def current_sp
end

def sp_stored_in_session
service_provider_request_proxy&.issuer
end

def sp_url_stored_in_session
service_provider_request_proxy&.url
end

def service_provider_request_proxy
return if sp_request_id.blank?
ServiceProviderRequestProxy.from_uuid(sp_request_id).issuer
return @service_provider_request_proxy if defined?(@service_provider_request_proxy)
@service_provider_request_proxy = ServiceProviderRequestProxy.from_uuid(sp_request_id)
end

def pull_request_id_from_current_sp_session_id
Expand Down