I am currently using python-social-auth and added a backend MyOAuth
which BaseOAuth1
, inside the BaseOAuth1
class there is a handy oauth_request
instance method which I would like to make use of outside of the class.
https://github.com/omab/python-social-auth/blob/master/social/backends/oauth.py
I tried instantiate the class directly but looks like I am missing some context.
Is there a way reference that MyOAuth
backend instance? I am expecting something like
request.user.social_auth.get(provider='MyOAuth').backend.oauth_request(...)