Skip to content

The verification rule on address within SubjectConfirmationData is too strict #854

Open
@Littlefisher619

Description

@Littlefisher619

Code Version

I'm using djangosaml2 which depend on pysaml2==7.1.0

Expected Behavior

The verification rule is too strict! The address format like "ip:port" can't be think as malformed.
The idp sent client's address within the SubjectConfirmationData section, but the address may not always a ip address only, it may contains port which determine by the implemention of idp.
SO, Expected Behavior is the verifaction returns True.

Current Behavior

I got a saml2.validate.ShouldValueError: Not an IPv4 or IPv6 address while idp connecting to my service provider.

image

Possible Solution

More rules to support different types of address field.

Steps to Reproduce

Sent address like "ip:port" in the section as below:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions