Skip to content
Open
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
8 changes: 4 additions & 4 deletions lib/AuthenticationSDK/authentication/jwt/JwtToken.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ def getHeaderClaimSet(jwt_cert_obj)

def extractResourcePath(request_target)
return '' if request_target.nil? || request_target.empty?
# Split the string to remove the query params
parts = request_target.split('?', 2)
return parts[0]

# Visa UAPI requires the full path including query string in request-resource-path.
# The signed path must exactly match the actual request URL or the server rejects with UNAUTHORIZED_USER.
request_target
end

implements TokenInterface
Expand Down