Skip to content

OAuth2Client.__init__() got multiple values for argument 'scope_delimiter' #698

@BhuwanPandey

Description

@BhuwanPandey

I didnot find any discussion or Issues regarding this . Actually this error occurs when user pass value of code into any of one.
I think same issue persist for other views also.

class GoogleLogin(SocialLoginView):
    adapter_class = GoogleOAuth2Adapter
    callback_url = settings.GOOGLE_AUTH_CALLBACK_URL
    client_class = OAuth2Client

class GitHubLogin(SocialLoginView):
    adapter_class = GitHubOAuth2Adapter
    callback_url = settings.GOOGLE_AUTH_CALLBACK_URL
    client_class = OAuth2Client

  • Solution
    It can be solved by removing scope argument while calling self.client_class i.e class OAuth2Client(object): from django-allauth package . Actually scope was removed in 0.62.0 that a long time ago .

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