OpenAPITools / OpenAPITools/openapi-generator

[REQ] add sessionToken support to AWS4Auth

Open
#18,252 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.