Topic: WebMatrix + IIS7 + rails authentication
|

|
| Author |
|
carlofhelicon Newbie

Joined: 16 February 2012
Online Status: Offline Posts: 3
|
| Posted: 16 February 2012 at 12:43am | IP Logged
|
|
|
Hi, I use WebMatrix to run my rails project, so if I
following the tutorial in
http://www.helicontech.com/articles/ruby-on-rails-on-
windows-in-production/ , and deploy to the IIS7, my
quewstion is ,can the IIS7 do the windows authentication or
not? if it's possible, how can the rails get the username
after user authenticate? thank!
|
| Back to Top |
|
| |
Guests Guest

Joined: 01 October 2003
Online Status: Online Posts: -160
|
| Posted: 16 February 2012 at 7:53am | IP Logged
|
|
|
Hello,
Yes, IIS can do such authorization type.
You may retrieve user name from server variables. Perhaps the following names may help LOGON_USER or AUTH_USER.
Regards
Andrew
|
| Back to Top |
|
| |
Guests Guest

Joined: 01 October 2003
Online Status: Online Posts: -160
|
| Posted: 16 February 2012 at 8:13am | IP Logged
|
|
|
We tried it in our environment and what you need in Ruby is the following:
Code:
request.env[ 'APPL_PATH' ]
request.env[ 'LOGON_USER' ] |
|
|
Regards
Andrew
|
| Back to Top |
|
| |
carlofhelicon Newbie

Joined: 16 February 2012
Online Status: Offline Posts: 3
|
| Posted: 16 February 2012 at 11:52pm | IP Logged
|
|
|
Hi, Andrew
ok, thanks, I'll try it:)
What's more, I have a rails project, before this, I run it
on mongrel server. Now I want to use WebMatrix, so how can
I easily move my rails project to the WebMatrix and get it
run under IIS?
Thanks!
Carl
|
| Back to Top |
|
| |
carlofhelicon Newbie

Joined: 16 February 2012
Online Status: Offline Posts: 3
|
| Posted: 17 February 2012 at 1:45am | IP Logged
|
|
|
Hi, Andrew ,
Now, I get it run. Thanks, BTW, the project is really cool!
Thanks:)
Best,
Carl
|
| Back to Top |
|
| |
|
|
Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum
|