Set up SAML authenticationv3.1+

Configure the plugin to enable SAML authentication using an anonymous Consumer.

For a full how-to guide, see Enable SAML authentication for Kong Gateway using Microsoft Entra.

Prerequisites

  • A SAML application

  • An anonymous Consumer

Environment variables

  • IDENTIFIER: Your SAML application identifier.

  • LOGIN_URL: Your SAML login URL.

  • CERTIFICATE: The contents of your SAML provider certificate (Base64).

Set up the plugin

Add this section to your declarative configuration file:

_format_version: "3.0"
plugins:
  - name: saml
    config:
      anonymous: anonymous
      issuer: ${{ env "DECK_IDENTIFIER" }}
      idp_sso_url: ${{ env "DECK_LOGIN_URL" }}
      assertion_consumer_path: "/consume"
      validate_assertion_signature: false
      session_secret: uwcLGoTJCWnHWZdVpbLYKlztNOyoGJ07
      idp_certificate: ${{ env "DECK_CERTIFICATE" }}
Copied to clipboard!

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!