Skip to content

Commit

Permalink
update code and add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sushanth0910 committed Nov 13, 2024
1 parent f52d258 commit cfeb268
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/token/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,11 @@ func (v tokenVerifier) Verify(token string) (*Identity, error) {
if err = v.verifyHost(parsedURL.Host); err != nil {
return nil, err
}

stsRegion, err := getStsRegion(parsedURL.Host)
if err != nil {
return nil, err
}

if parsedURL.Path != "/" {
return nil, FormatError{"unexpected path in pre-signed URL"}
Expand Down

0 comments on commit cfeb268

Please sign in to comment.