Code Monkey home page Code Monkey logo

Comments (6)

negstek avatar negstek commented on June 19, 2024

any idea to solve it ?

from django-allauth.

negstek avatar negstek commented on June 19, 2024

image
Steam change its login method recently, maybe this is a side effect of this
source of the error is that "associations not supported"

from django-allauth.

negstek avatar negstek commented on June 19, 2024

In debugging I noticed this error in the app.object when the package try to initiate SteamProverOpienId:

AttributeError("Manager isn't accessible via SocialApp instances")

from django-allauth.

pennersr avatar pennersr commented on June 19, 2024

I've just tested Steam and it "works-for-me".

Just to be sure, my settings.py contains:

SOCIALACCOUNT_PROVIDERS = {
    "steam": {
        "APP": {
            "client_id": "123456789",
            "secret": "123456789",
        }
    },
}

INSTALLED_APPS = 
...
    "allauth.socialaccount.providers.steam"

from django-allauth.

negstek avatar negstek commented on June 19, 2024

Hi @pennersr. Thank you very much, you save my week, I sucked when I updated the package by forgetting to read the release notes. I haven't seen the breaking changes in the settings configuration (personal note: RTFM!!!). All works fine on my site now except that this errors is back in my vscode terminal during debug despite database reset:

Missing required parameter in response from https://steamcommunity.com/openid/login: ('http://specs.openid.net/auth/2.0', 'assoc_type')
Traceback (most recent call last):
  File "/home/negstek/.cache/pypoetry/virtualenvs/django-all-auth-to-steam-83qxtO4Z-py3.11/lib/python3.11/site-packages/openid/message.py", line 481, in getArg
    return self.args[args_key]
           ~~~~~~~~~^^^^^^^^^^
KeyError: ('http://specs.openid.net/auth/2.0', 'assoc_type')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/negstek/.cache/pypoetry/virtualenvs/django-all-auth-to-steam-83qxtO4Z-py3.11/lib/python3.11/site-packages/openid/consumer/consumer.py", line 1286, in _requestAssociation
    assoc = self._extractAssociation(response, assoc_session)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/negstek/.cache/pypoetry/virtualenvs/django-all-auth-to-steam-83qxtO4Z-py3.11/lib/python3.11/site-packages/openid/consumer/consumer.py", line 1402, in _extractAssociation
    assoc_type = assoc_response.getArg(OPENID_NS, 'assoc_type', no_default)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/negstek/.cache/pypoetry/virtualenvs/django-all-auth-to-steam-83qxtO4Z-py3.11/lib/python3.11/site-packages/openid/message.py", line 484, in getArg
    raise KeyError((namespace, key))
KeyError: ('http://specs.openid.net/auth/2.0', 'assoc_type')

(the error does not prevent the connection, it still works fine)
Do you think it comes from the openid library, allauth or from my side ?

from django-allauth.

pennersr avatar pennersr commented on June 19, 2024

Sorry, the above does not ring a bell...

from django-allauth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.