vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Can I pass username (via URL etc) from java/jsp application via iframe to login (https://vborg.vbsupport.ru/showthread.php?t=177174)

alexbnow 04-25-2008 08:53 PM

Can I pass username (via URL etc) from java/jsp application via iframe to login
 
Can I pass username from java/jsp application via iframe to login a user to vBulletin?

I'm using an <iframe... CompanyName.com/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 domains setup I have is as follows:
CompanyName.com/forum hosts the forum software on a website provider's servers.
I have my java application running at CompanyName.net/tick/app/Login/Login.jsp and this login.jsp page has the ifram content in order to show the vBulletin forums home page... and my jsp application at this stage knows the user's IP address and based on that IP address, I would like to pass-in a username through the iFrame URL to vBulletin.

Any suggestions for how I could do this would be greatly appreciated. Thanks.

Dismounted 04-26-2008 10:33 AM

You would have to code a script that specifically logged in a user into vBulletin - without a password. It wouldn't be very secure though. You're much better off passing a token around which you can verify.


All times are GMT. The time now is 08:05 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.00891 seconds
  • Memory Usage 1,706KB
  • 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
  • (2)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