问题
I'm working on an iOS App. I would like to setup user authentication. i.e. User provides a username and password, and gets authenticated with TVM. The user access to AWS resources is regulated based on their credentials.
- How do I set this up? Is IAM with TVM enough to setup a Username/Password authentication?
- Do I need a third party authentication provider like Singly or StormPath?
- I would like the user to get authenticated and receive a "profile" which may include firstName, lastName, etc. What's the best way to set this up?
回答1:
The AWS site does contain step-by-step instructions for setting up an example identity TVM. We have also created a CloudFormation template for simplifying the deployment. It is important to note that this is just an example and can and should be customized to meet your needs.
The sample TVM does not require an external auth, but you can certainly add that if you feel it is necessary for your use case.
You can update the example TVM to store this, the source code is available on GitHub.
You might also consider using web identity federation and leveraging Facebook, Google, or Amazon as your identity provider. Depending on your use case, this may provide all the identity information you need.
来源:https://stackoverflow.com/questions/22078117/amazon-aws-iam-with-tvm