Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
jsConnect help
hi,
I've just setup vanilla and I am trying to use jsConnect to combine my custom built site with the forum.
I've created a auth file which is an exact copy of the example file in the php code library, the require file is within the forum directory (again same file from the php code library).
but I can't seem to get it to work, calling the auth file directly gives a blank page and the site won't log me in.
any help will be greatly appreciated.
Shedh
Tagged:
0
Answers
You need to plug in your own user information that is specific to your site. Have you done this or have you really put an exact copy of the auth file on your site?
I amended the auth file to work with my own framework, i've added a snippet below. I've commented out my code, but I assure you that my code does work
If you call the auth page directly you should never get a blank page. Try turning on error reporting to see if you've got an error in your page:
My error logs don't pick anything up, It seems to be something with the line
if (!defined('APPLICATION')) exit();
If that line is removed, the login info shows up but won't login because of a "Signature Invalid." error.
You're getting closer now. Have you matched the client IDs and secrets in Vanilla and your page? Once you have, click on the test link in Vanilla beside your connection.
now am getting
test({"error":"access_denied","message":"Signature invalid."})
is something wrong with the functions file, as the hash is obviously being outputted incorrectly
yes, double checked all codes are matching
guess it works now, I used the updated code on github
was there ever a resolution to this issue? I'm having the same problem
@mnelson77 Please start a new thread detailing your issue.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.