Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong "Issuer" in the SAML auth token #11774

Open
meandrii opened this issue Oct 22, 2024 · 0 comments
Open

Wrong "Issuer" in the SAML auth token #11774

meandrii opened this issue Oct 22, 2024 · 0 comments
Labels
question Further information is requested

Comments

@meandrii
Copy link

meandrii commented Oct 22, 2024

Describe your question/
I am trying to integrate google workspace as IDP to authentik with SAML. I've created custom SAML application in the Google Admin Console and SAML source in the authentik following this guide https://docs.goauthentik.io/docs/users-sources/sources/protocols/saml/. When i try to go through flow which has google's IDP as the source i receive google's 403 page with this error:
"Error: app_not_configured_for_user
Service is not configured for this user."
After further debugging i found that SAML token which being forwarded to google might not has correct issuer value.

<samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" AssertionConsumerServiceURL="https://auth.MODERATED3.lan/source/saml/ps/acs/" Destination="https://accounts.google.com/o/saml2/idp?idpid=MODERATED1" ID="MODERATED2" IssueInstant="2024-10-22T23:00:09Z" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Version="2.0">

    <saml:Issuer>

        https://accounts.google.com/o/saml2?idpid=MODERATED1

    </saml:Issuer>

    <samlp:NameIDPolicy Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"/>

</samlp:AuthnRequest>

I think reason of that, because field "issuer" supposed to be authentik entity URL which I specified at the google custom app's configuration. Could someone help please understand why authentik doesn't work with google custom application by SAML?

Version and Deployment (please complete the following information):

  • authentik version: 2024.8.3
  • Deployment: original docker-compose
@meandrii meandrii added the question Further information is requested label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant