我正在嘗試遵循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個月後你發佈了這個。 –