Skip to content

How to get backend instance #114

@variable

Description

@variable

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(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions