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.
AutoLogin not working
kokoseq
New
Hi,
first of all, thanks for this plugin. It is exactly what I need. Unfortunately it is not working for me right now. I am using Version 2.0.18.8, jsConnect is working for my site (testing mode turned off), but when I install this plugin, nothing changes. I am not automatically logged in, I also tried to hide login buttons and they are still visible. What am I doing wrong? Thanks!
0
Comments
No idea. I suppose you enabled it?
Do you have an example.
grep is your friend.
Hi, thanks for quick reply. It is enabled, of course:-) Is there anything else I have to do to make auto sign in working, except the plugin instalation and enable it? Do I have to make any changes to my code or forum configuration?
And I suppose that this:
$Configuration['Plugins']['jsConnectAutoSignIn']['HideConnectButton'] = TRUE;
$Configuration['Plugins']['jsConnectAutoSignIn']['HideSignIn'] = TRUE;
goes to config file right?
Thanks
sorry do you have an example? Like web page.
I'm not going to guess what the problem is.
grep is your friend.
Hy kokoseq,
I'am also looking for a solution for the autologin, ii can share with you the information i have so far.
(i have vanilla 2.0.18.8 and a different Java Website (jboss+seam)
x00: well I am developing locally right now, so it is not uploaded on the internet... probably I could deploy it and than let you know, so you could have a look?
bogdan: well I am not asking about jsConnect here, as it is working on my site. If you can not make it work following tutorials you mentioned, you are probably not skilled in programming:-) I am asking about this plugin, which should perform auto login with first jsConnect provider available (which is my custom site currently). That is the thing, which is not working for me:-/
it would certainly help especially if you have a custom site
you could use localtunnel or similar
http://progrium.com/localtunnel/
grep is your friend.
ok, you can go here: http://kdomestriha.pagekite.me/yii/strihani5/
that is my site. You can login there username: gogol password: gogol
forum can be found at http://kdomestriha.pagekite.me/yii/strihani5/forum
you will see that jsConnect is woring, autoconnect not. Do not know, if you will be able to find out anything of it anyway.. Thanks
two problems
it should have the
client_id
attached in the query string. Without the client id can do nothing. It get the client_id fromUserAuthenticationProvider
table andAuthenticationKey
field.I think this may be an issue with SignInUrl which need to be in the format
http://your-site.com/login?redirect_to=http://your-site.com/entry/jsconnect?client_id=|id|&Target=%2F
whereredirect_to
is your own 301 redirect to forward and|id|
is theclient_id
This should also be acceptable
http://your-site.com/login?redirect_to=http://your-site.com/entry/jsconnect?client_id={AuthenticationKey}&Target={Target}
. Without having to modify it, it should add the client_id/AuthenticationKey and Target.Obviously you adapt to your needs. If you are not cross site then you can shorten e.g.
/login?redirect_to=http://your-site.com/entry/jsconnect?client_id={AuthenticationKey}&Target={Target}
bare minimum supply
client_id={AuthenticationKey}
in the query string.grep is your friend.
in dashboard -> jsConnect
"Sign In Url" try
/yii/strihani5/forum/entry/jsconnect?client_id={AuthenticationKey}&Target={Target}
grep is your friend.
having reviewed things, I decided to make some changes for a more forgiving, and more direct connect
http://vanillaforums.org/addon/jsconnectautosignin-plugin-0.1.5b
Hopefully that helps.
I may remove the need for the dependency on JsConnectPlugin soon.
grep is your friend.
x00, amazing, thanks for reply. I will try it tomorrow and let you know:-)
dear x00, new version of your plugin works without a need of editing my code. Thanks a lot! The problem probably was, that you did not write in any documentation, that you should provide client_id={AuthenticationKey}&Target={Target} in login URL as jsConnect itself did not require it. Anyway, thanks again!
I still have problem with hiding connect and sign in buttons. Tried to paste
$Configuration['Plugins']['jsConnectAutoSignIn']['HideConnectButton'] = TRUE;
$Configuration['Plugins']['jsConnectAutoSignIn']['HideSignIn'] = TRUE;
in forum config file, but nothing happened. Any ideas?
If only it worked that way would be great! reminds me of [incantation]=TRUE
You are better off hiding it with css, try these :
.Box.GuestBox,.Entry.SingleEntryMethod{display:none;}
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
there is a :
I think you might try (it may be a bit counterintuitive--
and then it will hide the signin anchor.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
cool, thanks again guys! Now I am facing last problem - when I sign of my page, how to automatically sign of from the forum? Now, when I sign of my page, I stay signed of on forum, which is not behavior I want :-/
Easiest way is to use the forum signout link, with the Target pointing to the site sign out.
Or you could delete the vanilla cookie.
grep is your friend.
what??
grep is your friend.
@x00 said:
reality check by x00.
it is not counter intuitive.
it is intuitive, i stand corrected, I believe. i probably shouldn't have commented here since I haven't tried it.
TRUE to hide....
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.