# Ways to Federate users to access aws?

**URL:** <https://awshq.com/t/ways-to-federate-users-to-access-aws/38985>\
**Category:** AWS Certifications and Learning\
**Created:** [June 28, 2024, 3:29pm UTC](https://awshq.com/t/ways-to-federate-users-to-access-aws/38985 "2024-06-28T15:29:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![titan19781](https://awshq.com/letter_avatar_proxy/v4/letter/t/aeb1de/32.png) [@titan19781](https://awshq.com/u/titan19781)\
**Post date:** [June 28, 2024, 3:29pm UTC](https://awshq.com/t/ways-to-federate-users-to-access-aws/38985/1 "2024-06-28T15:29:26Z")

</div>

In a question on tutorials dojo - a question came up on how users in Corporate network can access AWS (no mention of SAML 2.0) - amongst the answer choices (1) & (3) were indicated as correct.

(1) is definitely right - However, I’ve been searching AWS documentation on (2) vs (3)-\> I had picked (2) because You can create a Custom Identity Broker which calls STS.AssumeRole on behalf of the application and hands off the credentials to the application which is in the AWS documentation. However the correct answer picks (3). I have not found any documentation where the “_application first authenticates against LDAP to retrieve the name of an IAM role associated with the user. It then assumes that role via a call to IAM Security Token Service (STS)_”. (1) and (2) can be found [here](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_common-scenarios_federated-users.html) .

- (1) Authenticate against LDAP using an identity broker you created, and have it call IAM Security Token Service (STS) to retrieve IAM federated user credentials. The application then gets the IAM federated user credentials from the identity broker to access the appropriate S3 bucket.
- (2) Create an identity broker that assumes an IAM role, and retrieve temporary AWS security credentials via IAM Security Token Service (STS). The application gets the AWS temporary security credentials from the identity broker to gain access to the appropriate S3 bucket
- (3) The application first authenticates against LDAP to retrieve the name of an IAM role associated with the user. It then assumes that role via a call to IAM Security Token Service (STS). Afterward, the application can now use the temporary credentials from the role to access the appropriate S3 bucket.

**Can someone point out where does AWS say an app can directly auth against LDAP WITHOUT an Identity Broker and thus validate (3) is right? And thus why (2) is wrong?**

* * *

**Related discussions:**

- [AWS Cloud Solutions Architect or Data Analyst?](https://awshq.com/t/aws-cloud-solutions-architect-or-data-analyst/39679)
- [PearsonVUE malicious software???](https://awshq.com/t/pearsonvue-malicious-software/37780)
- [How long does it take to get passed exam visible](https://awshq.com/t/how-long-does-it-take-to-get-passed-exam-visible/28449)
- [Udemy blocking screenshots in latest Chrome update?](https://awshq.com/t/udemy-blocking-screenshots-in-latest-chrome-update/39588)
- [Best resource to study for the cloud practitioner exam?](https://awshq.com/t/best-resource-to-study-for-the-cloud-practitioner-exam/38588)

---

<div class="post-metadata">

**Author:** ![dghah1](https://awshq.com/letter_avatar_proxy/v4/letter/d/9de0a6/32.png) [@dghah1](https://awshq.com/u/dghah1)\
**Post date:** [June 28, 2024, 4:42pm UTC](https://awshq.com/t/ways-to-federate-users-to-access-aws/38985/2 "2024-06-28T16:42:22Z")

</div>

You probably need to post the whole question as AWS cert questions have keywords and loaded sentences that are used to exclude correct or plausibly correct answers from the set. The questions are designed to have conditional phrases in them that you use to rule out answers and thus zero down to the one they want you to choose.

There will be some sort of reason why #2 is “wrong” – either from a technical perspective or because one of the conditional phrases in the question rules it out. The key difference in #2 and #3 to me seems to be which entity is assuming the role, maybe that was mentioned somehow in the question?

---

<div class="post-metadata">

**Author:** ![titan19781](https://awshq.com/letter_avatar_proxy/v4/letter/t/aeb1de/32.png) [@titan19781](https://awshq.com/u/titan19781)\
**Post date:** [June 28, 2024, 5:21pm UTC](https://awshq.com/t/ways-to-federate-users-to-access-aws/38985/3 "2024-06-28T17:21:47Z")

</div>

thanks - i was putting it in but the post was becoming very verbose. Ive put it back in… I was more curious on the actual solution in (2) which they’re saying is a valid solution (regardless of the question) → can an application actually auth against LDAP directly without an IdP broker? Ive not seen any arch diagram or resource that shows this architecture
