简体   繁体   中英

AWS Cognito Authenticate Users with Firebase Email And Password IOS

I am having difficulty navigating Amazon's documentation. I currently have an app that logs in using Firebase's email and password identification. How do I connect this to my data stored in AWS using Cognito? My app is in Objective C.

Unfortunately without a backend, you cannot integrate Firebase Login with Cognito since it doesn't support OpenId Connect. With a backend, you would need to implement the Developer Authenticated Identities flow as follows:

Implement AWSAbstractCognitoIdentityProvider

In the refresh method:

  1. Login via Firebase
  2. Make a https call passing the Firebase Login token to your backend and validate
  3. From your backend, call GetOpenIdForDeveloperIdentity using Developer Credentials
  4. Pass results back to the device
  5. Update the identity id and the logins map

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM