如何为现有用户池配置 aws amplify in flutter?没有为此用户池配置身份池。我想在不创建身份池的情况下对其进行配置。以下是我当前的amplifyconfiguration.dart
文件,
const amplifyConfig = ''' {
"UserAgent": "aws-amplify-cli/2.0",
"Version": "1.0",
"auth": {
"plugins": {
"awsCognitoAuthPlugin": {
"IdentityManager": {
"Default": {
}
},
"CognitoUserPool": {
"Default": {
"PoolId": "**********",
"AppClientId": "**********",
"Region": "**********"
}
},
"Auth": {
"Default": {
"authenticationFlowType": "USER_SRP_AUTH"
}
}
}
}
}
}''';
每次我尝试登录时,上面的配置都会出现这个错误,
Amplify.Auth.signIn(
username: 'test@gmail.com',
password: 'test'
);
java.lang.Exception: Federation is not enabled, please check if you have CognitoIdentity configured.
如何在不使用身份池的情况下解决此问题?