Skip to content

SamlResponse issuer verification #325

@mauromol

Description

@mauromol

Currently SamlResponse during its validity check ensures that the issuer of the response and the issuer of the assertion (with the constraint that just one assertion is present) have both a value equal to the IdP entity id.
This is fine, however no check is made against the format of such issuers. Specification says that the issuer format must be urn:oasis:names:tc:SAML:2.0:nameid-format:entity and that, in this case, no qualifier must be specified. But what about a malicious/erroneous response?
Perhaps java-saml could add a check that ensures that the format is either omitted or urn:oasis:names:tc:SAML:2.0:nameid-format:entity? And perhaps that no qualifier (and maybe also no SP qualifier) is specified as well?

The Italian SPID specification requires the former check (the one about the format) is made, although we could say that this might be an excess of rigor.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions