Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-23-2007, 01:50 AM
Elisor Elisor is offline
 
Join Date: Apr 2007
Location: Dubai, UAE
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Logging into vb through a .NET site

Using vb 3.6.5.

We're using vb as a forum for a networking site. When users login to the site we'd also like them to be automatically logged into vb. The site is .net 2.0 / MSSQL and the forum opens up within a frame in one part of the site.

We've tried cookies/inserting a record into the session table but we can't seem to get that to work. So far as we can tell there's no way of passing a query string to the login page to pass across the user data.

Does anyone have any advice on how we can go about this?

Thx
Reply With Quote
  #2  
Old 04-23-2007, 04:15 PM
ElfMage ElfMage is offline
 
Join Date: Jul 2006
Location: Miami
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Inserting a record in the session table and setting the right cookies should work. But, you need to take into account the sessionhash that vB generates based on the user's IP and browser's user agent (md5'ed).

Alternatively, you could do a server-side (or client-side clear gif) request to vBulletin's login.php, just like the login form does, passing the user's username and md5 password (you could send clear password as well, but this would be a security hole).

Take a look at CES Cookie Cutter. It doesn't do what you need, but it shows the use of a clear-gif client side to transfer vB's cookies/login from one domain to a different domain.
Reply With Quote
  #3  
Old 04-24-2008, 09:06 PM
alexbnow alexbnow is offline
 
Join Date: Apr 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Before I post the question below as a new thread, I thought I'd check if your answer would apply to my situation as well? (If yes, what is this "CES Cookie Cutter")

I'm using an <iframe... /forum/ > to display the CMPS page (or it could just be the vBulletin home page) on my java/jsp application home page.

I'm interested in being able to somehow login the user based on the <username> etc info that I may be able to pass through to vBulletin application so that I can show the forum content that the specific user is permitted to see.

My users are coming from specific IP addresses since they mostly represent different companies. So I would like to show each user coming in the unique content specific to their company... but I cannot expect them to login to the forums as a secondary step from my java application?

Is there a way to pass the username/password via the URL?

Or to set a cookie on my parent domain etc that can be read by the <iframe...> included forum.

The current setup is I have CompanyName.com/forum hosting the forum software on a website provider's servers. I have my java application running at CompanyName.net/tick/app/Login/Login.jsp

Any suggestions for how I could do this?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:14 PM.


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.03377 seconds
  • Memory Usage 2,172KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete