From 24cbc51f32282943d30e8b1c80f3fa18d1f262dd Mon Sep 17 00:00:00 2001 From: Fang-Pen Lin Date: Fri, 3 Oct 2025 14:43:50 -0700 Subject: [PATCH] Update doc with the new overloaded method --- docs/sdks/languages/java.mdx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/sdks/languages/java.mdx b/docs/sdks/languages/java.mdx index 6e949b118..129aaafa2 100644 --- a/docs/sdks/languages/java.mdx +++ b/docs/sdks/languages/java.mdx @@ -143,6 +143,21 @@ var input = AwsAuthProvider.defaultProvider() .toLoginInput(""); ``` +Since this is the most common use case for AWS authentication, we also provide an overloaded method for `AwsAuthLogin`: + +```java +public void AwsAuthLogin( + String identityId +) +throws InfisicalException +``` + +With this method, you can pass in the `identityId`, and it will retrieve AWS credentials automatically for you from your current environment: + +```java +sdk.Auth().AwsAuthLogin(""); +``` + If you prefer to retrieve AWS credentials manually from your local AWS environment, you can generate the login input by providing the AWS credentials yourself, as shown below: ```java