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

feat: Add support for Zitadel IdP #782

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jnohlgard
Copy link

Add mappings for SAML attributes provided by default in Zitadel. This allows signing in with self-hosted Zitadel IdP. Without this PR Omni fails to identify the user name in the SAML response and the user gets an error message after signing in and the web console is inaccessible.

More info: https://zitadel.com/docs/guides/integrate/login/saml#saml-requests-and-responses

As a workaround, it is possible to get Zitadel to provide extra attributes that match the names of the fields that Omni expects by using a custom Zitadel Action on the Complement SAMLResponse/Pre SAMLResponse creation trigger, although it takes a little bit of manual extra effort from the Zitadel admin to add this.

For reference, this is the workaround script I have used on my self-hosted Zitadel instance:

Action samlOmniUsername:

function samlOmniUsername(ctx, api) {
    api.v1.attributes.setCustomAttribute('urn:oasis:names:tc:SAML:attribute:subject-id','', ctx.v1.getUser().preferredLoginName);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant