Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inherit all IAuthenticator methods #59

Merged

Commits on Oct 5, 2021

  1. Inherit all IAuthenticator methods

    Otherwise when using the plugins and one of the not implemented methods
    is called we get an exception instead of the actual error:
    
      File "/usr/lib/python3.8/site-packages/flask/views.py", line 163, in dispatch_request
        return meth(*args, **kwargs)
      File "/srv/app/src_extensions/ckan/ckan/views/dataset.py", line 740, in post
        return base.abort(403, _(u'Unauthorized to read package %s') % id)
      File "/srv/app/src_extensions/ckan/ckan/lib/base.py", line 59, in abort
        result = item.abort(status_code, detail, headers, comment)
    AttributeError: 'Saml2AuthPlugin' object has no attribute 'abort'
    amercader committed Oct 5, 2021
    Configuration menu
    Copy the full SHA
    8fbdb44 View commit details
    Browse the repository at this point in the history