Comments (9)
Just for posterity's sake:
![Screenshot 2024-04-23 at 5 33 44 PM](https://private-user-images.githubusercontent.com/4316564/325021753-b7a94e68-0dc7-4713-901e-5e576327340f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkwMDA0ODEsIm5iZiI6MTcxOTAwMDE4MSwicGF0aCI6Ii80MzE2NTY0LzMyNTAyMTc1My1iN2E5NGU2OC0wZGM3LTQ3MTMtOTAxZS01ZTU3NjMyNzM0MGYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjFUMjAwMzAxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTUxZjM0OGNhMzA4YWY0YTU1Yzc0OTcxNDk2NWJkZmViMzcwYjRiN2VmMDUwY2E3MGQzMDdjZThmMGYzZmZhZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.f5ImFArhGy6kIXmreZpIN6SEaLFCpn9HV9unufYI13Y)
from providers.
Created PR here: #1199
from providers.
@nexxai does the provider by default request access to fields outside of the ones with the default scope?
You should call ->scopes() when you use the redirect method to set custom scopes, as this PR changes the default for all users which will break anyone not approved for this scope
from providers.
I will try using the ->scopes()
method and update this thread, but according to the docs, it says this scope should be required anyways.
![Screenshot 2024-04-25 at 5 05 50 PM](https://private-user-images.githubusercontent.com/4316564/325793169-bf6eec17-9de4-4472-9579-87793d0ad9f5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkwMDA0ODEsIm5iZiI6MTcxOTAwMDE4MSwicGF0aCI6Ii80MzE2NTY0LzMyNTc5MzE2OS1iZjZlZWMxNy05ZGU0LTQ0NzItOTU3OS04Nzc5M2QwYWQ5ZjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjFUMjAwMzAxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzVmNzE5YmE0ZWNiZTM2NjliZDNlMzk1ZjdmY2Q4MmFlMmZkODkwNGE0ZmE0ZTczZTRhZjgxMWE3MjE5YmIyZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.YuVPcmCVbUqRYh4P-Aqq4scJAAkDT8KiMKLNB8texEI)
from providers.
Ok, I can confirm that using this worked:
return Socialite::driver('tiktok')
->scopes(['user.info.basic', 'user.info.profile'])
->redirect();
That said, I still think the default should be to include user.info.profile
since you can't technically use Socialite with its defaults for logging in to your Laravel app without it.
from providers.
Hmm. Which field is included by default that triggers the error? ie required the profile scope?
We can release a new major version to make sure we dont break existing.
from providers.
I couldn't tell which specific field was triggering the error; the only error message I got was the one I posted in the OP of this thread and it gets truncated before it specifies the missing field.
At the end of the day, a new major version probably makes the most sense since it is definitely a breaking change, but also aligns the intent of the Socialite provider with the reality of what TikTok is providing, and also aligns with the documentation we already have in the repo.
from providers.
Okay, looking at the docs, username
required that scope, which was broken by #1110
Fixed in #1183
from providers.
There is no BC break now, add the scope if you want the username
from providers.
Related Issues (20)
- Azure B2C provider failing with not supported? HOT 6
- Upgrade monorepo-builder to v11
- SAML2 provider - can't configure repeated_id_ttl and clock_skew HOT 1
- PKCE crashes when using stateless
- Azure B2C provider puts scope incorrectly HOT 1
- AzureADB2C has error in emails mapping HOT 3
- SAML2 Driver HOT 2
- Azure: Add support for optional post_logout_redirect_uri HOT 2
- Docs on how to use `SocialiteWasCalled[]` in Laravel 11 HOT 3
- Microsoft not returning `id_token` when using `refresh_token` HOT 1
- Apple Provider Regenerates the Session HOT 1
- Microsoft-azure laravel 11 support HOT 5
- HubSpot redirect without specifying scope throws an error
- composer require socialiteproviders/twitter SocialiteProviders\Twitter\Provider does not extend Laravel\Socialite\Two\AbstractProvider HOT 4
- Azure AD B2C mapping fails after upgrade from 4.1.1 to 4.3.0 HOT 1
- Could not find a matching version of package socialiteproviders/claveunica HOT 1
- ClaveUnica Provider: new release HOT 1
- How should we be implementing Microsoft Azure's Front-channel logout URL?
- Facebook Limited Login support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from providers.