fix
This commit is contained in:
@@ -30,7 +30,7 @@ export default class AuthClient {
|
|||||||
throw new Error("Identity ID is required for AWS IAM authentication");
|
throw new Error("Identity ID is required for AWS IAM authentication");
|
||||||
}
|
}
|
||||||
|
|
||||||
const iamRequest = await performAwsIamLogin(this.baseUrl, identityId, await getAwsRegion());
|
const iamRequest = await performAwsIamLogin(await getAwsRegion());
|
||||||
|
|
||||||
const res = await this.apiClient.apiV1AuthAwsAuthLoginPost({
|
const res = await this.apiClient.apiV1AuthAwsAuthLoginPost({
|
||||||
apiV1AuthAwsAuthLoginPostRequest: {
|
apiV1AuthAwsAuthLoginPostRequest: {
|
||||||
|
|||||||
@@ -31,9 +31,7 @@ export const getAwsRegion = async () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export const performAwsIamLogin = async (baseUrl: string, identityId: string, region: string) => {
|
export const performAwsIamLogin = async (region: string) => {
|
||||||
const body = "Action=GetCallerIdentity&Version=2011-06-15";
|
|
||||||
|
|
||||||
AWS.config.update({
|
AWS.config.update({
|
||||||
region
|
region
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user