468,139 Members | 1,410 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,139 developers. It's quick & easy.

Forms Authentication Across Applications

It know that we can use the following method
http://msdn2.microsoft.com/en-us/library/eb0zx8fc.aspx

to form authenticate across multiple applications.

I have created an asp.net application that supports form authentication. My
application is going to be called by another legacy application (HTML) which
does the initial authentication.Something like this:

<form name="form1" action="auth.asp" method="post" >
......
</form>

How can I implement "Forms Authentication Across Applications" in this
case? I assume sending authentication information via query string is my
only option, right?

Thanks a lot

Fariba
ASP.NET ISharp - Cairo
May 16 '07 #1
4 3349
Forms authentication works with, and requires cookies. So unless you want to
manually (in your code) create and assign a vaild Forms Auth ticket in
response to the querystring "deal", that would be the only way that I can
think of.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Fariba" wrote:
It know that we can use the following method
http://msdn2.microsoft.com/en-us/library/eb0zx8fc.aspx

to form authenticate across multiple applications.

I have created an asp.net application that supports form authentication. My
application is going to be called by another legacy application (HTML) which
does the initial authentication.Something like this:

<form name="form1" action="auth.asp" method="post" >
.....
</form>

How can I implement "Forms Authentication Across Applications" in this
case? I assume sending authentication information via query string is my
only option, right?

Thanks a lot

Fariba
ASP.NET ISharp - Cairo

May 16 '07 #2
The application which is calling my application is an HTML application with
the form tag I mentioned before. Will it be able to issue a ticket or cooki?

Thanks

"Peter Bromberg [C# MVP]" wrote:
Forms authentication works with, and requires cookies. So unless you want to
manually (in your code) create and assign a vaild Forms Auth ticket in
response to the querystring "deal", that would be the only way that I can
think of.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Fariba" wrote:
It know that we can use the following method
http://msdn2.microsoft.com/en-us/library/eb0zx8fc.aspx

to form authenticate across multiple applications.

I have created an asp.net application that supports form authentication. My
application is going to be called by another legacy application (HTML) which
does the initial authentication.Something like this:

<form name="form1" action="auth.asp" method="post" >
.....
</form>

How can I implement "Forms Authentication Across Applications" in this
case? I assume sending authentication information via query string is my
only option, right?

Thanks a lot

Fariba
ASP.NET ISharp - Cairo
May 16 '07 #3
The Forms auth ticket cookie is issued by ASP.NET on the server in response
to a login form post with the username and password.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Fariba" wrote:
The application which is calling my application is an HTML application with
the form tag I mentioned before. Will it be able to issue a ticket or cooki?

Thanks

"Peter Bromberg [C# MVP]" wrote:
Forms authentication works with, and requires cookies. So unless you want to
manually (in your code) create and assign a vaild Forms Auth ticket in
response to the querystring "deal", that would be the only way that I can
think of.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Fariba" wrote:
It know that we can use the following method
http://msdn2.microsoft.com/en-us/library/eb0zx8fc.aspx
>
to form authenticate across multiple applications.
>
I have created an asp.net application that supports form authentication. My
application is going to be called by another legacy application (HTML) which
does the initial authentication.Something like this:
>
<form name="form1" action="auth.asp" method="post" >
.....
</form>
>
How can I implement "Forms Authentication Across Applications" in this
case? I assume sending authentication information via query string is my
only option, right?
>
Thanks a lot
>
Fariba
ASP.NET ISharp - Cairo
>
>
May 16 '07 #4
Thanks peter for your reponse.

if the cookie is not issued in the parent application (the one with the
<formtag which calls "auth.asp") let's say they use another way of keeping
the security context , then I am stuck? :)

BTW, I though that :

1) There is something called cookieless form authentication which does not
require cookie

2) Cookie and ticket are two differnet things but related. From what I have
interpreted from "The Forms auth ticket cookie is issued by ASP.NET ..." they
are the same thing? Can my html application which calls that asp page issues
a ticket and I get that ticket in my asp.net page and reuse it as part of the
forms authentication scenario?
Thanks a lot for your time

"Peter Bromberg [C# MVP]" wrote:
The Forms auth ticket cookie is issued by ASP.NET on the server in response
to a login form post with the username and password.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Fariba" wrote:
The application which is calling my application is an HTML application with
the form tag I mentioned before. Will it be able to issue a ticket or cooki?

Thanks

"Peter Bromberg [C# MVP]" wrote:
Forms authentication works with, and requires cookies. So unless you want to
manually (in your code) create and assign a vaild Forms Auth ticket in
response to the querystring "deal", that would be the only way that I can
think of.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
>
>
>
>
"Fariba" wrote:
>
It know that we can use the following method
http://msdn2.microsoft.com/en-us/library/eb0zx8fc.aspx

to form authenticate across multiple applications.

I have created an asp.net application that supports form authentication. My
application is going to be called by another legacy application (HTML) which
does the initial authentication.Something like this:

<form name="form1" action="auth.asp" method="post" >
.....
</form>

How can I implement "Forms Authentication Across Applications" in this
case? I assume sending authentication information via query string is my
only option, right?

Thanks a lot

Fariba
ASP.NET ISharp - Cairo
May 16 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Anonieko Ramos | last post: by
7 posts views Thread by dave | last post: by
2 posts views Thread by Dotnet Guy | last post: by
2 posts views Thread by Brian Shannon | last post: by
4 posts views Thread by David | last post: by
1 post views Thread by Sean | last post: by
27 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.