CZ-NIC / django-eidas-specific-node

GNU General Public License v3.0
2 stars 2 forks source link

Invalid AuthnContextClassRef should not throw an exception #112

Open jtalir opened 3 years ago

jtalir commented 3 years ago

At the moment, if the AuthnContextClassRef is not one of allowed values, system throws an exception, i.e ValueError: 'urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport' is not a valid LevelOfAssurance

System should either provide human friendly error message "Authentication request is not valid because of invalid value of LevelOfAssurence", or it should redirect back to Service Provider with the same message.