-
Notifications
You must be signed in to change notification settings - Fork 1.1k
validating url for sso and sts #3610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| } | ||
| ss.str(); | ||
|
|
||
| Aws::Http::URI uri(ss.str()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of validating the the URI in the constructor, validate it when we make the call like how we currently do it in AwsClient, i.e. in AWSHttpResourceClient::GetResourceWithAWSWebServiceResult we should validate there before making any calls
| using namespace Aws::Auth; | ||
| using namespace Aws::Client; | ||
|
|
||
| class SSRFValidationTest : public Aws::Testing::AwsCppSdkGTestSuite { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets not make this its own test, AWSCredentialsProviderTest has tests for both SSO and STS, lets place tests there that validate this behavor
Description of changes: validating credential urls for sso and sts
Check all that applies:
Check which platforms you have built SDK on to verify the correctness of this PR.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.