【发布时间】:2018-07-05 02:08:33
【问题描述】:
我正在尝试按照 this 指南使用 AWS Cognito 和 AWS 用户池创建新用户、更改密码等。我似乎找不到适用于 Android/iOS 的合适 Xamarin SDK。有没有存在的?
更具体地说,我在创建 Cognito 用户池对象时遇到问题。在我链接的示例中,他们有这个:
CognitoUserPool userPool = new CognitoUserPool(context, userPoolId, clientId, clientSecret);
// user pool can also be created with client app configuration:
CognitoUserPool userPool = new CognitoUserPool(context, userPoolId, clientId, clientSecret, clientConfiguration);
似乎没有CognitoUserPool 类。我在AWSSDK.CognitoIdentity 库中找不到任何类似或具有类似构造函数或任何东西的东西。是我遗漏了什么还是这还不被支持?
我也无法从此处显示的 Register a new user 示例代码中找到类似于 SignUpHandler 类的任何内容:
// create a handler for registration
SignUpHandler handler = new SignUpHandler() {
@Override
public void onSuccess(CognitoUser user, boolean signUpConfirmation) {
// The sign up was successful, "user" is a CognitoUser object of the user who was signed up.
// "signUpConfirmation" will indicate if user is already confirmed.
}
@override
public void onFailure(Exception exception) {
// Sign up failed, code check the exception for cause and perform remedial actions.
}
}
【问题讨论】:
标签: android amazon-web-services xamarin amazon-cognito