vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   API Login (https://vborg.vbsupport.ru/showthread.php?t=325469)

Ice_Haron 08-02-2017 08:44 AM

API Login
 
Hello, I have a site and I have vbCloud forum.

What I need:

User comes to my site, logs into it, and when he goes to forum, he is ALREADY logged in, he don`t need to login another time.

I transfered accounts from site to forum via "/ajax/api/user/save", so accounts are synchronized, i just need to make a single auth both for my site and forum.

Also, please, tell me, where I can find full list of "/ajax/api/***" methods, if its possible.

Thanks for help.

noypiscripter 08-02-2017 01:45 PM

<a href="https://www.vbulletin.com/forum/blogs/david-grove/4327147-how-to-log-into-vbulletin-from-an-external-script-on-your-website" target="_blank">https://www.vbulletin.com/forum/blog...n-your-website</a>

Rafa-el 08-02-2017 01:46 PM

Quote:

Originally Posted by Ice_Haron (Post 2589083)
Hello, I have a site and I have vbCloud forum.

What I need:

User comes to my site, logs into it, and when he goes to forum, he is ALREADY logged in, he don`t need to login another time.

I transfered accounts from site to forum via "/ajax/api/user/save", so accounts are synchronized, i just need to make a single auth both for my site and forum.

Also, please, tell me, where I can find full list of "/ajax/api/***" methods, if its possible.

Thanks for help.

I think you'll need to make the changes for the session on the secondary site since vBCloud won't alow you to do so, however this implies that you've to do a comparison of the cookie parameters from there as well which might or might not be a challenge depending on the vBCloud capabilities.

Ice_Haron 08-02-2017 04:51 PM

Quote:

Originally Posted by noypiscripter (Post 2589089)

This does NOT work for Cloud, thank you.

--------------- Added [DATE]1501740027[/DATE] at [TIME]1501740027[/TIME] ---------------

btw, forum sits in subdomain

I tried to set cookies myself usind 'sessionhash' variable:
PHPSESSID - does not work.
vb3570sessionhash - forum rewrites this cookie with his own and does not log user in.


All times are GMT. The time now is 08:41 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.01151 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
  • (2)bbcode_quote_printable
  • (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