#138 ✓resolved
James

Add configurable HTTP Authentication

Reported by James | December 12th, 2008 @ 01:09 PM | in 1.2

A number of Kete instances, particularly staging instances, use HTTP Authentication to keep the entire contents private for testing purposes, etc.

Current practise is to manually paste a callback and related private method into app/controller/application.rb.

This could be able to be configured with a constant or YAML file.

Possible Implementation Details

  1. Add a YAML file to config/ that contains the username and password for HTTP authentication, and a toggle so it can be turned on or off easily.
  2. Add an initializer to load the YAML file to constant(s)
  3. Add a callback and related method to trigger authentication checks in app/controller/application.rb, conditionally depending the YAML configuration loaded.

Comments and changes to this ticket

  • Kieran P

    Kieran P January 6th, 2009 @ 07:43 PM

    • Assigned user changed from “James” to “Kieran P”

    With the new capistrano configuration gem developed for another ticket, this work will be easier to complete now. Will work on this tomorrow.

  • Kieran P

    Kieran P January 7th, 2009 @ 03:52 PM

    • State changed from “new” to “resolved”

    This work has been completed and merged into master. To setup http authentication, use the capistrano-configuration gem or add this to config/site_lockdown_auth_credentials.yml:

    username: test

    password: test

    Resolving ticket.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Kete was developed by Horowhenua Library Trust and Katipo Communications Ltd. to build a digital library of Horowhenua material.

People watching this ticket

Referenced by

Pages