AWSWebIdentityCredentialsProvider如何获取参数值?参数、AWSWebIdentityCredentialsProvider

2023-09-11 11:27:30 作者:珎的借口让我心寒

想使用下面的code做认证,

Am trying to use the below code to do authentication,

但我无法得到需要传递到下面的参数值, providerId,roleArn,roleSessionName。的

But i am unable to get the values needs to be passed to following parameters, providerId, roleArn, roleSessionName.

不过,webIdentityToken价值,我必须从本地服务器接收它。

However, webIdentityToken value i will receive it from our local server.

AWSWebIdentityCredentialsProvider *provideer = [AWSWebIdentityCredentialsProvider credentialsWithRegionType:AWSRegionUSEast1 providerId:@"" roleArn:@"" roleSessionName:"" webIdentityToken:@""];

问候, 巴特

Regards, Bhat

推荐答案

我已创建自定义凭据提供与亚马逊的认证机制完美的作品:)。 我按照相同的静态凭据提供的步骤。

I have created custom credential provider and amazon authentication mechanism works flawlessly :) . I have followed the steps same as that of Static Credential provider.