-
Notifications
You must be signed in to change notification settings - Fork 52
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
"You do not have permission" at "api/users/me" and Fatal error: Call to undefined method #133
Comments
That's weird... Are you still having this problem today? |
Yes unfortunately. I've been waiting for your reply as I don't know where to start with debugging, haha. I tried uninstalling and reinstalling the add-on a couple of times but same issue. (This is on a completely fresh install of XF). The exact same code I use against XF 1.5 and BDApi works perfectly. Are you able to reproduce the issue? |
Oh, you were running XenForo |
Upgrading to 2.1.4 correctly shows user info if However, if oauth token is added to authorization header, the same 403 Forbidden error occurs e.g.:
Does this version not support grabbing token from headers? Thanks |
Ahh, this is due to Apache stripping headers for some reason, as mentioned here: #60 (comment) |
Ah, Apache. I recall hearing about something similar but couldn't find that issue. Glad you sorted it out. |
When my OAuth flow points to
api/users/me
with Bearer token added to authorization header - I'm receiving the errorYou do not have permission
.If I manually add
oauth_token=token
as query string parameter (for testing), the request seems to work but receive the error:Fatal error: Call to undefined method Xfrocks\Api\XF\ApiOnly\Template\Templater::func() in \htdocs\xf2.1\src\addons\Xfrocks\Api\XF\Transform\User.php on line 160
Any ideas?
Test setup is: WAMP 2.4 (Apache 2.4.4, PHP 5.6.40). XF version 2.1.1. BDAPI version 2.0.1 Beta 4.
The text was updated successfully, but these errors were encountered: