从ASP网站传输身份验证JSP [英] Transferring authentication from ASP site to JSP

查看:173
本文介绍了从ASP网站传输身份验证JSP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用同一数据库中另一个JSP网站的一个asp.net网站。对于JSP网站做了一些报告和ASP的网站是用于数据输入。我需要的是一旦用户到asp.net网站和点击登录这些共同的ID之一,我想带他们到JSP网站显示的报告,而无需他们再次登录。对于JSP网站的用户名和密码是完全一样的ASP,因为它们使用相同的用户表。该JSP网站是3-4岁,我不是在它在所有经历。所以,如果有人能帮助我在这里。

I have an asp.net site which uses the same database as another JSP site. The JSP site does some reporting and asp site is used for data entry. What I need is once a user is logged in to asp.net site and clicks on one of those common id's, I want to take them to the jsp site to show the report without having them to sign in again. The username and password for the jsp site is exactly the same as asp since they use the same user table. The JSP site is 3-4 years old and I am not at all experienced in it. So if anyone can help me out here.

下面是响应头和请求头用于登录到JSP网站:

Here is the Response Header and Request Header for the login into JSP site:

**Response Headers**
Content-Length  0
Content-Type    text/html
Date    Wed, 05 Dec 2012 15:20:49 GMT
Location    http://www.something.something.htm?action=0
Server  Apache-Coyote/1.1
Request Headersview source
Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Cookie  JSESSIONID=523454ADB2B7C19D29BD68DB55D30146
Host    www.something.something.com
Proxy-Connection    keep-alive
Referer http://www.something.login.htm
User-Agent  Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
Request Headers From Upload Stream
Content-Length  41
Content-Type    application/x-www-form-urlencoded

请求头只包含模式= 0的用户名和密码。

Request Header contains only username and password with mode=0.

感谢。

推荐答案

当有人点击链接,JSP网站上...我会发送用户到intermediare网页...已与用户名和密码的一种形式隐藏字段。设置窗体,以JSP的形式操作(这是用于登录)。和经销商使用JavaScript提交表单。

When someone clicks on the link for jsp site... I would send user to an intermediare page... Which has a form with user name and password as hidden field. Set the action of the form to jsp's form(which is used for login). And auto submit form using javascript.

这篇关于从ASP网站传输身份验证JSP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆