sorry, don't have code on me right now to post, but i can detail out the process (be aware, this is on an older version of vanilla, i have not worked with the newer version as of yet)
all the calls that need authentication require having a transien…
not sure i follow your question exactly, but i'll give it a shot.
download the application and then look at /api/controllers/class.sessioncontroller.php
you'll see some very basic code on how to access the currently logged in users session and how…
this application makes certain URLs available that allow for another program to interact with the data in Vanilla. All the URLs output JSON.
for example, say you want another webpage to list out all the categories in your blog. once you install th…
ditto for what madel says. i like how i currently i can add a "sign up" link to proxy connect, and now when a user clicks on "sign up" in vanilla, it gets sent to my sign up page.
having that analogy exists for when a user clicks "change my passwor…
@tim, i got 2.0.3 working with 1.6, i ran into some problems (most of them my fault)
1) git pull on vanilla master is only 2.0.1 right now, had to switch to branch unstable to get 2.0.3
2) my proxy auth page uses json instead of ini, any chance th…
vanilla 2.0.1 now has this builtin. it works, and best of all, i'm now running a completely unmodified vanilla forum.
my proxyconnector still has some modifications, but looks like @tim's got a nice update 1.5 planned in the future.
i'm worried i …
for anyone just wanting to get 2.0.1 working with proxyconnector 1.4 look for this line in plugins/ProxyConnect/class.proxyauthenticator.php
public function GetTokenKeyFromHandshake($Handshake) {
return ''; // this authenticator doesnt use…
you'll need to download and install this plugin on your vanilla 2 forum: http://vanillaforums.org/addon/472/vanilla-proxyconnect
however, once installed, you need to configure it which requires being able to create a new page on your application th…
i needed something like this as well, and modified Vanilla's ProxyRequest function in library/core/functions.general.php, look for this line:
//."User-Agent: Vanilla/2.0\r\n"
modify the user-agent to be the user-agent of the request:
$Header = "GET…
thanks @tim.
i got to the bottom of the error that i am experiencing. i made the following change:
$HostHeader = $Host.($Port != 80) ? ":{$Port}" : '';
to:
$HostHeader = $Host.(($Port != 80) ? ":{$Port}" : '');
doing an inline if/else without the…
thanks @tim.
that wasn't my problem in the end.
what was happening was that TransientKey was being interpreted as some empty NON-Null value, which was triggering the if() block to then run SetNonce. that block should only be run if ForeignNonce i…
my bad.
i was assuming the function didn't exist. didn't bother looking into inherited functions.
there is likely an error that is popping up in there, that breaks out of the try statement from earlier on, so when i comment it out, i get my authe…
@tim, i don't see a difference in the two lines you posted above, am i seeing something wrong?
as it stands, when i use
$HostHeader = $Host.($Port != 80) ? ":{$Port}" : '';
the proxy request goes out to (myforum.myhost.com/my/user/details) instead…
@tim, you are correct, the original code change i suggested in the first post (Requestion->DefaultController) was not needed. it was not a cookie domain mismatch, but just not me clearing out my cookies each time as i was trying to get the proxy …
i've made a couple more changes to get my application userIDs from being used as the foreign key, instead of the email addresses. in class.proxyauthenticator.php i forced the UniqueID to be used instead of the user email address.
$UserEmai…
oh, that could certainly mess with things.
yes, there is a lack of documentation (or at least there was when i built this) on integrating apis into vanilla 2 (but this makes sense as vanilla 2 has not been released...)
does this work for you now?…
richard,
can you give me more information about your install? i'm using this on RC1 right now and it works. I do have mod-rewrite on, but most everything else is default.
there are other users on the forum that have this working for them too, so w…
@todd, ok, i have now successfully installed a fresh rc3 on nginx. but i had to change up code in class.request.php in function _LoadEnvironment to get it working (as well as a slightly modified nginx.conf for my site.
the line that states (305 in…
Gdn_Url::Request() == "" [empty string]
Gdn::Request()->Url('dasbhoard/setup', True) == "/index.php?p=/dashboard/setup"
does this indicate that nginx is not passing PATH_INFO correctly?
@todd, i run my own nginx server.
i've debugged problems with the pre-RC versions of vanilla 2 and posted a working conf in a popular thread here. more than willing to debug again, just need some pointers as things have changed a bit since pre-RC (…
i'm attempting to do a pre-RC1 to RC3 and run into other fatal errors. @rhino777, did you ever figure out step 5? i'ld really like to update my database to work with the latest release, but still preserve my forum....
oh i see. i misinterpreted the definition of issue. i figured since i was upgrading a pre-RC1 that this is not an issue of vanilla 2, as the focus will likely be on vanilla1->vanilla2 migration.
i'll go ahead and post on github now.
i'm likely using a pre RC1 vanilla code base. if i try git pulling RC3 and going to /utility/structure i get an sql complaint that i can't get around: "Unknown column 'd.Body' in 'field list'
if i try clearing the cache folder manually and removing…