Je suis la documentation d'Amazon mais cela ne fonctionne pas comme annoncé. J'ai le dernier sdk aussi. Le code self.identity = ci-dessous ne fonctionne pas car il est en lecture seule.Utilisation des identités de développeur Amazon Cognito
@implementation DeveloperAuthenticatedIdentityProvider
/*
* Use the token method to communicate with your backend to get an
* identityId and token.
*/
- (AWSTask <NSString*>) token {
//Write code to call your backend:
//Pass username/password to backend or some sort of token to authenticate user
//If successful, from backend call getOpenIdTokenForDeveloperIdentity with logins map
//containing "your.provider.name":"enduser.username"
//Return the identity id and token to client
//You can use AWSTaskCompletionSource to do this asynchronously
// Set the identity id and return the token
self.identityId = response.identityId;
return [AWSTask taskWithResult:response.token];
}
@end
Comment intensifier cela? Merci.