Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing the "openidconnect" extra fails #895

Open
mikkonie opened this issue Mar 21, 2024 · 1 comment
Open

Installing the "openidconnect" extra fails #895

mikkonie opened this issue Mar 21, 2024 · 1 comment

Comments

@mikkonie
Copy link

I am attempting to set up OpenIDC auth for my Django project using python-social-auth and social-auth-app-django.

I've followed the instructions found here in the installation docs, which instruct me to install the openidconnect extras for OpenIDC authentication to work:

pip install "social-auth-core[openidconnect]"

Expected behaviour

The packages should be installed without errors or warnings.

Actual behaviour

When attempting to install the extras, I get the following warning with nothing getting installed:

social-auth-core 4.5.3 does not provide the extra 'openidconnect'

What are the steps to reproduce this issue?

Input clear steps to reproduce the issue for a maintainer.

  1. Create virtual env on Python 3.11
  2. Run pip install social-auth-app-django==5.4.0
  3. Run pip install "social-auth-core[openidconnect]"

Any logs, error output, etc?

Full log of the pip installs:

(venv) $ pip install social-auth-app-django==5.4.0
Collecting social-auth-app-django==5.4.0
  Using cached social_auth_app_django-5.4.0-py3-none-any.whl.metadata (3.2 kB)
Requirement already satisfied: Django>=3.2 in /x/venv/lib/python3.11/site-packages (from social-auth-app-django==5.4.0) (4.2.11)
Collecting social-auth-core>=4.4.1 (from social-auth-app-django==5.4.0)
  Using cached social_auth_core-4.5.3-py3-none-any.whl.metadata (4.1 kB)
Requirement already satisfied: asgiref<4,>=3.6.0 in /x/venv/lib/python3.11/site-packages (from Django>=3.2->social-auth-app-django==5.4.0) (3.7.2)
Requirement already satisfied: sqlparse>=0.3.1 in /x/venv/lib/python3.11/site-packages (from Django>=3.2->social-auth-app-django==5.4.0) (0.4.4)
Requirement already satisfied: requests>=2.9.1 in /x/venv/lib/python3.11/site-packages (from social-auth-core>=4.4.1->social-auth-app-django==5.4.0) (2.31.0)
Requirement already satisfied: oauthlib>=1.0.3 in /x/venv/lib/python3.11/site-packages (from social-auth-core>=4.4.1->social-auth-app-django==5.4.0) (3.2.2)
Requirement already satisfied: requests-oauthlib>=0.6.1 in /x/venv/lib/python3.11/site-packages (from social-auth-core>=4.4.1->social-auth-app-django==5.4.0) (1.4.0)
Requirement already satisfied: PyJWT>=2.7.0 in /x/venv/lib/python3.11/site-packages (from social-auth-core>=4.4.1->social-auth-app-django==5.4.0) (2.8.0)
Requirement already satisfied: cryptography>=1.4 in /x/venv/lib/python3.11/site-packages (from social-auth-core>=4.4.1->social-auth-app-django==5.4.0) (41.0.7)
Requirement already satisfied: defusedxml>=0.5.0rc1 in /x/venv/lib/python3.11/site-packages (from social-auth-core>=4.4.1->social-auth-app-django==5.4.0) (0.7.1)
Requirement already satisfied: python3-openid>=3.0.10 in /x/venv/lib/python3.11/site-packages (from social-auth-core>=4.4.1->social-auth-app-django==5.4.0) (3.2.0)
Requirement already satisfied: cffi>=1.12 in /x/venv/lib/python3.11/site-packages (from cryptography>=1.4->social-auth-core>=4.4.1->social-auth-app-django==5.4.0) (1.16.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /x/venv/lib/python3.11/site-packages (from requests>=2.9.1->social-auth-core>=4.4.1->social-auth-app-django==5.4.0) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /x/venv/lib/python3.11/site-packages (from requests>=2.9.1->social-auth-core>=4.4.1->social-auth-app-django==5.4.0) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in /x/venv/lib/python3.11/site-packages (from requests>=2.9.1->social-auth-core>=4.4.1->social-auth-app-django==5.4.0) (1.26.18)
Requirement already satisfied: certifi>=2017.4.17 in /x/venv/lib/python3.11/site-packages (from requests>=2.9.1->social-auth-core>=4.4.1->social-auth-app-django==5.4.0) (2023.11.17)
Requirement already satisfied: pycparser in /x/venv/lib/python3.11/site-packages (from cffi>=1.12->cryptography>=1.4->social-auth-core>=4.4.1->social-auth-app-django==5.4.0) (2.21)
Using cached social_auth_app_django-5.4.0-py3-none-any.whl (26 kB)
Using cached social_auth_core-4.5.3-py3-none-any.whl (410 kB)
Installing collected packages: social-auth-core, social-auth-app-django
Successfully installed social-auth-app-django-5.4.0 social-auth-core-4.5.3
(venv) $ pip install "social-auth-core[openidconnect]"
Requirement already satisfied: social-auth-core[openidconnect] in /x/venv/lib/python3.11/site-packages (4.5.3)
WARNING: social-auth-core 4.5.3 does not provide the extra 'openidconnect'
Requirement already satisfied: requests>=2.9.1 in /x/venv/lib/python3.11/site-packages (from social-auth-core[openidconnect]) (2.31.0)
Requirement already satisfied: oauthlib>=1.0.3 in /x/venv/lib/python3.11/site-packages (from social-auth-core[openidconnect]) (3.2.2)
Requirement already satisfied: requests-oauthlib>=0.6.1 in /x/venv/lib/python3.11/site-packages (from social-auth-core[openidconnect]) (1.4.0)
Requirement already satisfied: PyJWT>=2.7.0 in /x/venv/lib/python3.11/site-packages (from social-auth-core[openidconnect]) (2.8.0)
Requirement already satisfied: cryptography>=1.4 in /x/venv/lib/python3.11/site-packages (from social-auth-core[openidconnect]) (41.0.7)
Requirement already satisfied: defusedxml>=0.5.0rc1 in /x/venv/lib/python3.11/site-packages (from social-auth-core[openidconnect]) (0.7.1)
Requirement already satisfied: python3-openid>=3.0.10 in /x/venv/lib/python3.11/site-packages (from social-auth-core[openidconnect]) (3.2.0)
Requirement already satisfied: cffi>=1.12 in /x/venv/lib/python3.11/site-packages (from cryptography>=1.4->social-auth-core[openidconnect]) (1.16.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /x/venv/lib/python3.11/site-packages (from requests>=2.9.1->social-auth-core[openidconnect]) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /x/venv/lib/python3.11/site-packages (from requests>=2.9.1->social-auth-core[openidconnect]) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in /x/venv/lib/python3.11/site-packages (from requests>=2.9.1->social-auth-core[openidconnect]) (1.26.18)
Requirement already satisfied: certifi>=2017.4.17 in /x/venv/lib/python3.11/site-packages (from requests>=2.9.1->social-auth-core[openidconnect]) (2023.11.17)
Requirement already satisfied: pycparser in /x/venv/lib/python3.11/site-packages (from cffi>=1.12->cryptography>=1.4->social-auth-core[openidconnect]) (2.21)

Any other comments?

I haven't ventured beyond the install failing so I'm not sure if this is just a case of outdated documentation, or if using OpenID Connect in fact fails with this extra install not working. I thought I should raise the issue in any case.

@nijel
Copy link
Member

nijel commented Mar 24, 2024

There are no extras needed for that since 013d27d, so it's an outdated documentation.

cardoe added a commit to cardoe/nautobot that referenced this issue Apr 24, 2024
Since 4.5.0 of social-auth-core it has not had an extras of
'openidconnect' so drop it from the dependencies.
see python-social-auth/social-core#895
fixes nautobot#5565
cardoe added a commit to cardoe/nautobot that referenced this issue Apr 24, 2024
Since 4.5.0 of social-auth-core it has not had an extras of
'openidconnect' so drop it from the dependencies.
see python-social-auth/social-core#895
fixes nautobot#5565

Signed-off-by: Doug Goldstein <[email protected]>
cardoe added a commit to cardoe/nautobot that referenced this issue Apr 24, 2024
Since 4.5.0 of social-auth-core it has not had an extras of
'openidconnect' so drop it from the dependencies.
see python-social-auth/social-core#895
fixes nautobot#5565

Signed-off-by: Doug Goldstein <[email protected]>
cardoe added a commit to cardoe/nautobot that referenced this issue Apr 25, 2024
Since 4.5.0 of social-auth-core it has not had an extras of
'openidconnect' so drop it from the dependencies.
see python-social-auth/social-core#895
fixes nautobot#5565

Signed-off-by: Doug Goldstein <[email protected]>
glennmatthews added a commit to nautobot/nautobot that referenced this issue Apr 25, 2024
Since 4.5.0 of social-auth-core it has not had an extras of
'openidconnect' so drop it from the dependencies.
see python-social-auth/social-core#895
fixes #5565

Signed-off-by: Doug Goldstein <[email protected]>
Co-authored-by: Glenn Matthews <[email protected]>
edwardtheharris pushed a commit to edwardtheharris/nautobot that referenced this issue Jul 15, 2024
Since 4.5.0 of social-auth-core it has not had an extras of
'openidconnect' so drop it from the dependencies.
see python-social-auth/social-core#895
fixes nautobot#5565

Signed-off-by: Doug Goldstein <[email protected]>
Co-authored-by: Glenn Matthews <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants