force login to wiki server
I want to setup a 'private' wiki server, accessible from the internet to authenticated users. Is there a way of forcing a login at the home page of the wiki server?
Mac mini, Mac OS X (10.7.2), Server
You can make a difference in the Apple Support Community!
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
I want to setup a 'private' wiki server, accessible from the internet to authenticated users. Is there a way of forcing a login at the home page of the wiki server?
Mac mini, Mac OS X (10.7.2), Server
To answer my own question.
1.Edit the controller for the wiki
nano /usr/share/collabd/coreclient/app/controllers/application_controller.rb
2. find the block
before_filter :set_locale, :ensure_supported_browser, :verify_auth_token, :current_user, :set_default_body_cl$
before_filter :current_user_can_destroy, :only => [:destroy]
after_filter :set_nosniff_header
3. Change to
before_filter :set_locale, :ensure_supported_browser, :verify_auth_token, :current_user, :set_default_body_cl$
before_filter :current_user_can_destroy, :only => [:destroy]
before_filter :ensure_user_is_authenticated
after_filter :set_nosniff_header
4. Restart the wiki
sudo serveradmin stop wiki
sudo serveradmin start wiki
Works for me, but don't know if this will survive an upgrade.
To answer my own question.
1.Edit the controller for the wiki
nano /usr/share/collabd/coreclient/app/controllers/application_controller.rb
2. find the block
before_filter :set_locale, :ensure_supported_browser, :verify_auth_token, :current_user, :set_default_body_cl$
before_filter :current_user_can_destroy, :only => [:destroy]
after_filter :set_nosniff_header
3. Change to
before_filter :set_locale, :ensure_supported_browser, :verify_auth_token, :current_user, :set_default_body_cl$
before_filter :current_user_can_destroy, :only => [:destroy]
before_filter :ensure_user_is_authenticated
after_filter :set_nosniff_header
4. Restart the wiki
sudo serveradmin stop wiki
sudo serveradmin start wiki
Works for me, but don't know if this will survive an upgrade.
For 10.8 (Mountain Lion Server), check out this post: https://discussions.apple.com/thread/4156010
force login to wiki server