Best Practices for Auth in an iOS App Without User Logins

0
5
Asked By MightyTulip42 On

I'm looking for advice on how to handle authentication in my iOS app that doesn't have traditional user accounts. Currently, the app integrates with a Cognito Identity Pool, which is hard-coded into the app. It retrieves credentials for this pool and uses them with guest access. However, I'm worried about the security of this setup since anyone who obtains the hard-coded Identity Pool ID could potentially misuse it to access AWS services. Is there a more secure way to manage authentication for an iOS app without direct user logins?

3 Answers

Answered By WittyOpossum99 On

Your implementation sounds like it may not have proper authentication configuration in place yet. Cognito can manage not only authentication but also access control very effectively. If you’re concerned about the hard-coded pool ID, consider using an intermediary backend that handles requesting AWS credentials securely.

Answered By CuriousPeach33 On

I think your concern is valid. If you have to use the Cognito Identity Pool ID in the app, then anyone could potentially exploit that. Instead, explore using secure storage options for keys and look into ways to manage access without exposing sensitive info directly in the app.

Answered By CharmingSquirrel87 On

If your app only needs credentials to connect to a backend service, consider implementing a reverse proxy on your server to handle the credentials instead of hard-coding them in the app. This way, you can rotate the credentials periodically without exposing them. You can also look into using API Gateway if you're familiar with AWS services.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.