-
Notifications
You must be signed in to change notification settings - Fork 22
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
Undefined index "user_id" #24
Comments
So, the request to
Again, weirdly this only fails with accounts except the first account used - am I missing something basic..? |
Same error, I tried to online test https://api.slack.com/methods/auth.test/test but I got the same error... I don't understand the Slack documentation... |
I can't quite remember the exact details, but I ended up putting the users through both flows - 'adding' Slack and then 'login-with' Slack. Bit cumbersome, and I'm sure it's not needed, but was the only thing that worked. I believe the issue was, whether it's this package at fault or not, that the 'added' flow was done under one account, and then subsequent 'login-with' were different users. |
Same issue here, though I am only trying a 'standard' workflow via
is also {
"ok": false,
"error": "invalid_auth"
} May be there is something that needs to be set additionally in the App's settings after all? I have only done the minimum, i.e. only provided the callback URL and added the |
Hi, thanks for this library - it's working fine for the first user (me), but any subsequent users that try and authenticate with my app are met with an
Undefined index "user_id"
error fromAdamPaterson\OAuth2\Client\Provider\SlackAuthorizedUser->getId()
.I can't figure out why it would be successful for one user (me, the one who installed the App into the Workspace) and not for other users?
When I look at
$token
from$provider->getAccessToken()
the scopes are a bit different:From a flow that worked:
identify,commands,incoming-webhook,channels:read,groups:read,users:read,identity.basic,identity.email,identity.avatar,identity.team
From a flow that didn't work:
identity.basic,identity.email,identity.avatar,identity.team
But the JSON that this scope data comes from, from Slack, is shown as
ok
and even has theaccessToken
in the response - it's not like there's auser_id
property existing in one and not the other, so I'm kind of at a loss as to which point in the flow theuser_id
index is missing.The text was updated successfully, but these errors were encountered: