Skip to main content

SAML

SAML (Security Assertion Markup Language) is a federated authentication standard that allows users to authenticate through an external identity provider (IdP) such as Okta, Azure AD, or Google Workspace.

What it is used for

  • Implement corporate Single Sign-On (SSO)
  • Authenticate users without local passwords
  • Integrate with enterprise identity providers
  • Centralize access management in the corporate IdP

Configuration

FieldDescription
ProviderIdentity provider name
Metadata URLApplication federation metadata URL
IdP entity IDIdentity provider identifier
IdP SSO URLSingle sign-on URL
SP entity IDService Provider identifier (Gredit)
Reply URLAssertion Consumer Service (ACS URL)
Name formatName identifier format
ACS bindingAssertion Consumer Service binding
CertificateSAML signing certificate (Base64)

Attribute mapping

AttributeDescription
UsernameSAML attribute containing the username
First nameAttribute containing the first name
Last nameAttribute containing the last name
EmailAttribute containing the email address
RolesAttribute containing the assigned roles

How it works

  1. The user accesses Gredit with their username.
  2. If their origin is SAML, they are redirected to the configured IdP.
  3. After authenticating at the IdP, it sends a signed SAML assertion to Gredit.
  4. Gredit validates the assertion, creates or updates the user, and assigns roles based on the attribute mapping.

Relationship with other modules

  • Authenticates Users with a SAML origin
  • Alternative to LDAP for SSO
  • Recorded in Login records
  • Roles are assigned based on the roles attribute mapping