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
Testing/obj-storage-mock: add dummy assume-role endpoint #8288
Conversation
@FormParam("Policy") String policy, | ||
@FormParam("DurationSeconds") Integer durationSeconds, | ||
@FormParam("ExternalId") String externalId, | ||
@FormParam("SerialNumber") String serialNumber, |
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.
It seems SerialNumber
is only for MFA, and also requires TokenCode
. Not sure this is needed for testing STS.
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.
This is testing code - we can change and adopt later at any time.
@POST | ||
@Consumes(MediaType.APPLICATION_FORM_URLENCODED) | ||
@Produces(MediaType.APPLICATION_XML) | ||
public Object assumeRole( |
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.
I noticed we don't support SourceIdentity
, is it worth adding it?
@Inject ObjectStorageMock mockServer; | ||
|
||
@Path("assumeRole") | ||
@POST |
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.
According to this doc the original STS endpoint uses GET + query parameters.
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.
According to this doc the original STS endpoint uses GET + query parameters.
The awssdk actually uses POST + form
No description provided.