Skip to content

How to set AWS Source Identity? #46

Answered by cnuss
vin asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @vin!

Try this...

In your saml-to.yaml:

  aws:
      entityId: https://signin.aws.amazon.com/saml
      acsUrl: https://signin.aws.amazon.com/saml
      attributes:
        https://aws.amazon.com/SAML/Attributes/RoleSessionName: '...'
        https://aws.amazon.com/SAML/Attributes/SessionDuration: '...'
        https://aws.amazon.com/SAML/Attributes/Role: '...'
+       https://aws.amazon.com/SAML/Attributes/SourceIdentity: '<#= user.github.login #>'

Alternatively you can use things like:

  • <#= user.github.email #>
  • <#= user.github.firstName #>
  • <#= user.github.lastName #>

Or you can build a string in https://aws.amazon.com/SAML/Attributes/SourceIdentity: that concatenates any string yo…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cnuss
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #45 on September 30, 2023 14:49.