我正在尝试遵循this关于使用AWS Cognito和AWS用户池创建新用户,更改密码等的指南。我似乎无法找到适用于Android/iOS的适当的Xamarin SDK。有一个存在吗?AWS Cognito for Xamarin
更具体地说,我在创建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.
}
}
这很不幸。我希望他们计划尽快更新他们的Xamarin SDK。 –
这仍然是这种情况?现在差不多4个月后你发布了这个。 –