diff --git a/pyoauth2/provider.py b/pyoauth2/provider.py index de6eb18..3883f0a 100644 --- a/pyoauth2/provider.py +++ b/pyoauth2/provider.py @@ -572,7 +572,8 @@ def authorization_class(self): def get_authorization(self): """Get authorization object representing status of authentication.""" - auth = self.authorization_class() + auth_class = self.authorization_class() + auth = auth_class() header = self.get_authorization_header() if not header or not header.split: return auth