-
Notifications
You must be signed in to change notification settings - Fork 463
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
500 Server Error with TikTok #1198
Comments
Created PR here: #1199 |
@nexxai does the provider by default request access to fields outside of the ones with the default scope? |
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 |
Hmm. Which field is included by default that triggers the error? ie required the profile scope? |
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. |
There is no BC break now, add the scope if you want the username |
Got a weird one here. I've set up the TikTok provider and have gone through the application process with TikTok. I've requested and been approved for the
user.info.basic
anduser.info.profile
scopes.The weirdness happens when I actually try to login with a TikTok account. I get sent to the correct oAuth approval screen and I correctly approve it, but when I get redirected to my app, my app throws a 500 Server Error.
The redirect URI I get sent back to is
https://MYAPP/auth/tiktok/callback?code=2-vF-hhkIvD34ZPoyBLAHBLAHBLAHBLAHBLAHBLAHBLAHBLAHBLAHBLAH81jiR34sCen7wwmI-995ebt9N22PbSZ2AMw5BLAHBLAHBLAHBLAHBLAHBLAHBLAHBLAHbkwvitP-IsmA_vELfgqBLAHBLAHtMfS89IETiVvcBLAHBLAHBLAHBLAHBLAHBLAHseH6PgqnJXjP8MdSyGN0PsCcw-stSV26%2A1%214608.va&scopes=user.info.basic&state=zYVWqwVR5GJBLAHBLAHBLAHBLAH
And it shows that the
scopes
value isuser.info.basic
, a scope I've been approved for, but if I checkstorage/logs/laravel.log
, I see this error:Does anyone have any insight as to why this might be happening?
The text was updated successfully, but these errors were encountered: