elliotpeele / pyramid_oauth2_provider

An Oauth2 provider built on pyramid
MIT License
31 stars 16 forks source link

OauthAuthenticationPolicy._get_auth_token raises a TypeError #14

Closed secynic closed 7 years ago

secynic commented 7 years ago

OauthAuthenticationPolicy._get_auth_token raises a TypeError when util.getClientCredentials returns False rather than a tuple. Test this by hitting your site without providing headers/authorization.

I will submit a PR soon as a temporary fix, but exception handling should be revamped as a whole in the long run.