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

Do not attach avatar on omniauth registration if avatar_url is unreachable #22

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

froger
Copy link
Member

@froger froger commented Feb 11, 2025

🎩 What? Why?

When users login with external login, the OAuth2 server might gives an avatar_url that is not reachable.
This happens using Auth0 when a user have no avatar, Auth0 give back an avatar_url that gives a 404.

📌 Related Issues

Link your PR to an issue

Testing

Describe the best way to test or validate your PR.
Setting up an Auht0 provider, and register your user without any avatar. Auth0 will gives in the payload a default avatar_url that is not accessible, at least in a server-to-server mode.

♥️ Thank you!

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request does not contain a valid label. Please add one of the following labels: ['type: feature', 'type: change', 'type: fix', 'type: removal', 'target: developer-experience', 'type: internal']

@froger froger force-pushed the fix/omniauth-404-avatar-url branch from e76ac69 to b7e889d Compare February 12, 2025 06:21
@froger froger changed the title Fix: omniauth 404 avatar url Do not attach avatar on omniauth registration if avatar_url is unreachable Feb 12, 2025
@rsdeus
Copy link
Member

rsdeus commented Feb 12, 2025

@froger, the code is OK. I'll test it now.

@froger froger force-pushed the fix/omniauth-404-avatar-url branch from b7e889d to 4d532af Compare February 20, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants