authentik icon indicating copy to clipboard operation
authentik copied to clipboard

Amazon business SSO

Open dorianim opened this issue 3 years ago • 5 comments

Describe your question/ I' trying to get authentik working as an amazon business identity provider, but I always get an error stating that assertions could not be parsed

Relevant infos Amazon setup guide: https://www.amazon.de/ab/sso/setup-guide

Screenshots image image

  • UniqeID: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress
  • E-mail: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress
  • Full Name: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name

Logs image

Version and Deployment (please complete the following information):

  • authentik version: 2022.2.1
  • Deployment: docker-compose

Additional context Add any other context about the problem here.

dorianim avatar Mar 10 '22 09:03 dorianim

I havent tested this yet, but make sure to not enable encryption as authentik doesn't currently support encrypted SAML Assertions

BeryJu avatar Mar 15 '22 17:03 BeryJu

Ah, that's good to know, not sure if it is possible to disable it on Amazons side, tough.

dorianim avatar Mar 16 '22 11:03 dorianim

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 15 '22 11:05 stale[bot]

I'd still love so see this being resolved, not sure how I can help, though.

dorianim avatar May 15 '22 11:05 dorianim

So I got this to work, the important steps are:

  • Don't enable encrypted assertions on Amazon's side
  • The SAML Signing certificate (which is required) needs to have a Subject-alternate-name set, which the default authentik certificate did not, so I generated a new one (any domain seems to work, having a SAN of goauthentik.io when testing on localhost works
  • Enable the default mappings in authentik
  • Create the provider with a Post binding
  • Configure the mappings on amazon's side like this image

BeryJu avatar May 22 '22 21:05 BeryJu

@dorianim If you were able to set up amazon business with authentik, feel free to submit a PR to add it to the integrations page (https://docs.goauthentik.io/developer-docs/docs/templates/#add-a-new-integration)

BeryJu avatar Mar 21 '24 17:03 BeryJu