SAML
Integration guides for SAML and OpenID
kPow can integrate with your SAML IdP of choice.
We have integration guides for common providers:

Generic configuration

    AUTH_PROVIDER_TYPE=saml
    SAML_RELYING_PARTY_IDENTIFIER= the Audience URI (SP Entity ID)
    SAML_ACS_URL= the Single sign-on URL, e.g.
    1
    https://kpow.corp.com/saml
    Copied!
    SAML_METADATA_FILE= the path to the IDP metadata file, e.g.
    1
    /var/saml/saml-idp-metadata.xml
    Copied!
    SAML_CERT= the path to the SAML certificate. Note: This is optional, as it is most commonly bundled inside the IDP metdata XML
    1
    /var/saml/saml-cert.pem
    Copied!

Debugging SAML

Start kPow with the environment variable DEBUG_SAML=true to debug SAML configurations.
This will log the SAMLResponse payload from your IdP. You can use a tool like samltool.com to inspect and verify your IdP is correctly forwarding your configured claims/attributes.
kPow provides an endpoint for inspecting the state of the currently authenticated user. kpow_host/me returns a JSON payload like:
1
{"provider": "saml",
2
"email": "[email protected]",
3
"name": "User",
4
"roles": ["admin"]}
Copied!
Last modified 10mo ago