【发布时间】:2018-08-21 11:02:53
【问题描述】:
document 表明我们可以使用自定义名称。但是,它会抛出错误“clientName must contain a scheme”。
String userPoolId = "ap-northeast-1_XXXXXXXX"; //cens user
String clientName = "clientName";
AWSCognitoIdentityProvider provider = AWSCognitoIdentityProviderClientBuilder.defaultClient();
CreateUserPoolClientRequest update = new CreateUserPoolClientRequest()
.withUserPoolId(userPoolId)
.withClientName(clientName)
.withAllowedOAuthFlows(OAuthFlowType.Implicit)
.withAllowedOAuthScopes("phone", "email", "openid");
provider.createUserPoolClient(update);
【问题讨论】:
标签: java aws-sdk amazon-cognito aws-cognito