HotInk / hotink

Web-publishing application for Canadian University Press
http://hotink.net
MIT License
18 stars 3 forks source link

Info on Passenger deployment would be appreciated #21

Closed aendra-rininsland closed 14 years ago

aendra-rininsland commented 14 years ago

I'm trying to deploy this to a Passenger installation and am getting a "Forbidden" page whenever I connect to Publisher via HotInk. I'm pretty sure I have everything set up correctly, but am really unsure due to the lack of documentation in this area.

I'll help with documentation on this once done, but am currently pretty in the dark about how to set up routing and DNS to make the parent domain display a completed template. I'm really rather confused...

chrisdinn commented 14 years ago

Okay, I can get you through the last steps here, it's going to be easier than you think.

First of all, it sounds like you need setup an SSO consumer for Publisher, this is one of the parts that's changed over the last couple of months. An SsoConsumer object needs to be created to register the publisher application's url. This prevents Hot Ink from passing user information to unauthorized applications. You can set one up like this:

SsoConsumer.create(:name => "Publisher production instance", :url => "http://your-publisher-url/sso/login", :landing_url => "/control_panel")

This authorizes your application and sets a "landing url", which is the url, relative to your publisher's base url, to which Hot Ink will direct newly logged-in users.

This should get your publisher account to run the site under http://your-publisher-url/accounts/your-publisher-account.