B
Bharath
I am a newbie to java and web application and so this question
might sound silly to some of you. Anyway, this is the
scenario I have.
I have a web application running on Tomcat and it has digest
authentication. This webapp has two categories of resources:
resourceCat1 and resourceCat2.
The client would access
o resourceCat1 via a java application, and
o resourceCat2 via web browser interface
The requirement is that the user is prompted for username/password
when he tries either of these resources. But once he is
authenticated on either of these, he should not be prompted
to enter the credentials again when he tries to access the other
resource. It is almost like carrying a httpsession between
java app and web browser -- similar to yahoo messenger and yahoo
mail where if you login on yahoo messenger it can keep you logged
in for yahoo mail as well.
So,
1. User starts client java app. It sends out a http GET request
for resourceCat1.
2. Server challenges the client
3. Client prompts user for username and password.
4. Client enters information
5. Client responds to server with MD5 hash
6. Server accepts and authenticates.
Now, the java app would have a small icon and if you click on
it, it should send a http GET request for resourceCat2. And,
the user shouldn't be prompted for password information again.
So, how can we make the browser aware of the httpsession that
the javaapp has established already.
Can someone tell me if that is possible? I intend to use Firefox
or Internet Explorer as the browser.
--BK
might sound silly to some of you. Anyway, this is the
scenario I have.
I have a web application running on Tomcat and it has digest
authentication. This webapp has two categories of resources:
resourceCat1 and resourceCat2.
The client would access
o resourceCat1 via a java application, and
o resourceCat2 via web browser interface
The requirement is that the user is prompted for username/password
when he tries either of these resources. But once he is
authenticated on either of these, he should not be prompted
to enter the credentials again when he tries to access the other
resource. It is almost like carrying a httpsession between
java app and web browser -- similar to yahoo messenger and yahoo
mail where if you login on yahoo messenger it can keep you logged
in for yahoo mail as well.
So,
1. User starts client java app. It sends out a http GET request
for resourceCat1.
2. Server challenges the client
3. Client prompts user for username and password.
4. Client enters information
5. Client responds to server with MD5 hash
6. Server accepts and authenticates.
Now, the java app would have a small icon and if you click on
it, it should send a http GET request for resourceCat2. And,
the user shouldn't be prompted for password information again.
So, how can we make the browser aware of the httpsession that
the javaapp has established already.
Can someone tell me if that is possible? I intend to use Firefox
or Internet Explorer as the browser.
--BK