This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions (Forum Locked Forum Locked)
 Helicon Tech : Common Questions
Subject Topic: WebMatrix + IIS7 + rails authentication Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
carlofhelicon
Newbie
Newbie


Joined: 16 February 2012
Online Status: Offline
Posts: 3
Posted: 16 February 2012 at 12:43am | IP Logged Quote carlofhelicon

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 View carlofhelicon's Profile Search for other posts by carlofhelicon
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 16 February 2012 at 7:53am | IP Logged Quote Guests

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 View Guests's Profile Search for other posts by Guests
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 16 February 2012 at 8:13am | IP Logged Quote Guests

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 View Guests's Profile Search for other posts by Guests
 
carlofhelicon
Newbie
Newbie


Joined: 16 February 2012
Online Status: Offline
Posts: 3
Posted: 16 February 2012 at 11:52pm | IP Logged Quote carlofhelicon

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 View carlofhelicon's Profile Search for other posts by carlofhelicon
 
carlofhelicon
Newbie
Newbie


Joined: 16 February 2012
Online Status: Offline
Posts: 3
Posted: 17 February 2012 at 1:45am | IP Logged Quote carlofhelicon

Hi, Andrew ,
Now, I get it run. Thanks, BTW, the project is really cool!
Thanks:)

Best,
Carl
Back to Top View carlofhelicon's Profile Search for other posts by carlofhelicon
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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