Skip to content

Credentials refreshed with every api request #3096

Answered by normj
mikescandy asked this question in Q&A
Discussion options

You must be logged in to vote

Are you creating the service client for every request? The ServiceUrl property in your call stack caches the result of the property for subsequent calls. But if you are creating new service clients for every request the cache results will be lost.

https://github.com/aws/aws-sdk-net/blob/main/sdk/src/Core/Amazon.Runtime/ClientConfig.cs#L259

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ashishdhingra
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. credentials
3 participants