OpenAPITools / OpenAPITools/openapi-generator
[REQ] add sessionToken support to AWS4Auth
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Is your feature request related to a problem? Please describe.
AWS4Auth library only supports static credentials IE: AccessKey, SecretKey credentials. Temporary credentials are better to use than static credentials because they expire after a specified interval. To support temporary credentials, the AWS4Auth library needs to support the SessionToken parameter as well.
Describe the solution you'd like
Instead of only having the AWS4Auth method:
public void setCredentials(String accessKey, String secretKey)
to add the method
public void setCredentials(String accessKey, String secretKey, String sessionToken)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the AWS4Auth library and its existing setCredentials(String accessKey, String secretKey) entry point. Trace where credentials are stored and applied, then verify that the three-argument form accepts a sessionToken and supports temporary AWS credentials.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, java
- Domain
- api, authentication
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100