# How to pass users over to ASP.Net app seamlessly?

**URL:** <https://www.ruby-forum.com/t/how-to-pass-users-over-to-asp-net-app-seamlessly/70835>\
**Category:** Rails\
**Created:** [October 3, 2006, 11:33am UTC](https://www.ruby-forum.com/t/how-to-pass-users-over-to-asp-net-app-seamlessly/70835 "2006-10-03T11:33:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![magpie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@magpie](https://www.ruby-forum.com/u/magpie)\
**Post date:** [October 3, 2006, 11:33am UTC](https://www.ruby-forum.com/t/how-to-pass-users-over-to-asp-net-app-seamlessly/70835/1 "2006-10-03T11:33:44Z")

</div>

I am developing a Rails app and I’m considering using LGXReport  
( see [http://www.logixml.com/rdPage.aspx?rdReport=LGXReport](http://www.logixml.com/rdPage.aspx?rdReport=LGXReport) )  
Worth checking out by the way, its free.  
Anyway, its a [ASP.Net](http://ASP.Net) app and I’m using SQL Server. It uses open xml for  
its report format, and can use xml, a webservice or a database for a  
datasource.

It requires users to login. Is it easy/possible to generate the  
appropriate request from Rails to seamlessly pass the user over to an  
[ASP.NET](http://ASP.NET) app ?  
I don’t want users to have to log in twice.

I guess I would have to also generate user accounts from Rails on the  
[ASP.NET](http://ASP.NET) side, or perhaps all Rails users could use a single account on  
LGXReport. Any ideas about this ?

I’m a newbie on Rails, ASP and web development in general, but an  
experienced developer in other areas.

Regards

Gary

---

<div class="post-metadata">

**Author:** ![magpie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@magpie](https://www.ruby-forum.com/u/magpie)\
**Post date:** [October 3, 2006, 3:24pm UTC](https://www.ruby-forum.com/t/how-to-pass-users-over-to-asp-net-app-seamlessly/70835/2 "2006-10-03T15:24:12Z")

</div>

Mr Magpie wrote:

> It requires users to login. Is it easy/possible to generate the  
> appropriate request from Rails to seamlessly pass the user over to an  
> [ASP.NET](http://ASP.NET) app ?  
> I don’t want users to have to log in twice.

Something you can try is to setup Rails to use a DB as it’s session  
store. It shouldn’t be too hard then to have .NET read out of the table  
then to see who is logged in, etc. Another option is to have a DRB  
process that kicks off when someone logs in and talks to a .NET listener  
that makes the appropriate changes on the .NET side (ie: writes to the  
SQL DB and marks the users as currently logged in, etc.)

Probably several other ways to solve this as well.

---

<div class="post-metadata">

**Author:** ![magpie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@magpie](https://www.ruby-forum.com/u/magpie)\
**Post date:** [October 3, 2006, 9:00pm UTC](https://www.ruby-forum.com/t/how-to-pass-users-over-to-asp-net-app-seamlessly/70835/3 "2006-10-03T21:00:36Z")

</div>

> It requires users to login. Is it easy/possible to generate the  
> appropriate request from Rails to seamlessly pass the user over to an  
> [ASP.NET](http://ASP.NET) app ?  
> I don’t want users to have to log in twice.

Gary,  
I found these wiki page to do single login from RAILS for php forum:

[http://wiki.rubyonrails.com/rails/pages/HowToRenderProxiedPages](http://wiki.rubyonrails.com/rails/pages/HowToRenderProxiedPages)

hope it helps,  
Bojan

–  
Bojan M.  
Informatika Mihelac, Bojan M. s.p. | [www.informatikamihelac.com](http://www.informatikamihelac.com)  
 → tools, scripts, tricks from our code lab: [http://source.mihelac.org](http://source.mihelac.org)

---

<div class="post-metadata">

**Author:** ![magpie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@magpie](https://www.ruby-forum.com/u/magpie)\
**Post date:** [October 4, 2006, 9:59am UTC](https://www.ruby-forum.com/t/how-to-pass-users-over-to-asp-net-app-seamlessly/70835/4 "2006-10-04T09:59:07Z")

</div>

Thanks to both of you. The answer should be in there somewhere
