Improving SAML Flexibility: Encrypted Assertions, Custom NameID, and Static ACS Support

English! place to talk about development, programming and coding
Post Reply
Dropye
Znuny newbie
Posts: 1
Joined: 23 Apr 2026, 11:16
Znuny Version: 7.3.1
Real Name: André
Company: Hochschule für Technik und Wirtschaft Dresden

Improving SAML Flexibility: Encrypted Assertions, Custom NameID, and Static ACS Support

Post by Dropye »

Hey,

I would like to propose some changes to the SAML implementation.

In short, there are three things I would like to add:
  • Allow encrypted assertions in responses
  • Allow NameID override
  • Allow the use of a static AssertionConsumerServiceURL
1. Encrypted assertions in responses

We use Shibboleth with encrypted assertions.

2. Allow NameID override


At the moment, SAML is using my pairwiseID as the username, which is fine for new systems or if you have always used this ID.
However, systems that want to switch their authentication backend to SAML may use a different identifier.

In our case, the username is the EPPN.

I would prefer to override this via a setting instead of altering the entire user database.

3. Static AssertionConsumerServiceURL

In Shibboleth, I have to register an AssertionConsumerServiceURL. This URL cannot change, so the dynamic approach with a count parameter is not feasible.
There is a RelayState parameter available for dynamic parameters.

I have code for every change I am proposing here. Just let me know what you think.
root
Administrator
Posts: 4315
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Improving SAML Flexibility: Encrypted Assertions, Custom NameID, and Static ACS Support

Post by root »

Hi,

I would love to see them as a Pull Request at GitHub. This is the preferred way to propose these changes. Please also add the explanation from here to the Pull Request. This makes it easier to verify and approve changes.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply