Skip to content

'NoneType' object has no attribute 'require_signature' #598

Open
@rrauenza

Description

@rrauenza

Code Version

pysaml2==4.6.5

Expected Behavior

I'd expect a better error message regarding root cause

Current Behavior

My end points didn't match -- in short, my endpoints allowed http://foo.com:443, but the request was coming in on https://foo.com

The problem is that the above error is propagated up instead of an error about endpoints.

The root seems to be somewhere around the .verify() call which returns None when the endpoint validation fails rather than raising an exception.

Possible Solution

Raise exceptions and propagate up.

Steps to Reproduce

In short, I think if you just misconfigure a valid endpoint url you'll see the error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions