Skip to content

Constraints imposed on contacts on settings validation #353

@mauromol

Description

@mauromol

Currently, when settings are validated, the following gets executed:

if (contact.getEmailAddress().isEmpty() || contact.getGivenName().isEmpty()) {
	errorMsg = "contact_not_enough_data";
	errors.add(errorMsg);
	LOGGER.error(errorMsg);
}

Question is: why? I mean, both the given name and e-mail address are optional in SAML 2.0 specification (section 2.3.2.2 of the metadata specification). We can say that it's good practice to specify them, however there are scenarios in which they are not defined and metadata should still validate correctly (e.g.: SPID assessment for full aggregator subjects).

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