vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   External login access (https://vborg.vbsupport.ru/showthread.php?t=299052)

acalero 06-13-2013 08:43 AM

External login access
 
Hi.

I'm trying to login to our vBulletin forum from one external website (at same host).

The process I'm following is accessing the Api with the login_login method, so I recive one proper session.dbsessionhash and the session.userid with a redirect_login response.

Array
(
[session] => Array
(
[dbsessionhash] => 99760b6f1c5d05163475abb143ce8f5a
[userid] => 17256
)

[response] => Array
(
[errormessage] => Array
(
[0] => redirect_login
[1] => Demouser
)

)

)

My problem is that I'm stuck in there because what I want is when I click the link to access the forums I still see the login and pasword textboxes so something has not been done properly.

I suposse I'm not creating a real session. Could someone point me in the right direction? What I need is access my vBulletin and appear logged when I click my forum link from the website I'm calling the API login_login method.

Thank you very much in advance

acalero 07-02-2013 09:40 PM

So none could point me in the right direction? I see in the session table there is a new record with all the proper values, the only strange thing i see is the IP address is the one from the server i realize the curl action (the one that authenticates first the username and password).

Is there any way I could use those values to force one authentication at my vbulletin site once i click my forum link?

Thank you very much

Zachery 07-02-2013 09:57 PM

You can't really set cookies cross domain... normally.

acalero 07-03-2013 04:36 AM

Hi

It's not cross domain. Both elements are sharing the same domain.

http://www.domain.com/a -> source place where people is login
http://www.domain.com/vbulletin -> my vbulletin

So from http://www.domain.com/a/login.php the process I'm following is:

1. I call http://www.domain.com/vbulletin/api.php
2. I am using login_login and passing the proper parameters
3. I recive a dbsessionhash and the userid that are stored at the session table

When I check in the table, the only thing I notice is the IP address is the host one, because is the one calling api.php.

My goal is one I do http://www.domain.com/a/login.php and I go http://www.domain.com/vbulletin, the user appears logged, so I suposse I just need to force the session or the cookie in some way, but I still don't know how to do it.

Could anyone point me in the right direction?

Thank you very much


All times are GMT. The time now is 09:12 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00957 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete