Skip to content
This repository has been archived by the owner on Dec 8, 2017. It is now read-only.

Add guest user capability #3

Merged
merged 10 commits into from
Dec 14, 2014
Merged

Add guest user capability #3

merged 10 commits into from
Dec 14, 2014

Commits on Dec 13, 2014

  1. Hide SSI auth include directive in public mode

    Mike Bland committed Dec 13, 2014
    Configuration menu
    Copy the full SHA
    95193a4 View commit details
    Browse the repository at this point in the history
  2. Convert joiner_test.rb to Minitest

    Mike Bland committed Dec 13, 2014
    Configuration menu
    Copy the full SHA
    953bbd2 View commit details
    Browse the repository at this point in the history
  3. Import guest users from _data/private/hub

    This data will be used to generate authentication artifacts for users outside
    the team.
    Mike Bland committed Dec 13, 2014
    Configuration menu
    Copy the full SHA
    385480e View commit details
    Browse the repository at this point in the history
  4. Move DummyTestPage into separate module

    Mike Bland committed Dec 13, 2014
    Configuration menu
    Copy the full SHA
    64371f0 View commit details
    Browse the repository at this point in the history
  5. Generate auth artifacts for guest users

    This enables users in the _data/private/hub/guest_users.yml list to access the
    Hub.
    
    Authenication includes are generated, but do not link to any pages. On top of
    being a nice touch, they're necessary to avoid breaking the Server Side
    Include directive in _layouts/bare.html, since there's no means of checking
    the existence of an included file in SSI itself. We could write a small CGI
    process to check this and generate the authentication include on the fly, but
    that defeats the purpose of keeping the Hub otherwise all-static.
    Mike Bland committed Dec 13, 2014
    Configuration menu
    Copy the full SHA
    80aa39b View commit details
    Browse the repository at this point in the history
  6. Pull upstream changes into _data/private

    Mike Bland committed Dec 13, 2014
    Configuration menu
    Copy the full SHA
    8195583 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2014

  1. Remove unnecessary explicit truth check

    Mike Bland committed Dec 14, 2014
    Configuration menu
    Copy the full SHA
    b0ef1bb View commit details
    Browse the repository at this point in the history
  2. Improve generate_user_authentication_include() doc

    Mike Bland committed Dec 14, 2014
    Configuration menu
    Copy the full SHA
    07f2957 View commit details
    Browse the repository at this point in the history
  3. More generate_user_authentication_include() detail

    Mike Bland committed Dec 14, 2014
    Configuration menu
    Copy the full SHA
    69a1a51 View commit details
    Browse the repository at this point in the history
  4. Replace $REMOTE_USER with $http_x_forwarded_email

    After digging deeper into the origin of $REMOTE_USER at Aidan Feldman's
    request in #3, I realized that the user's entire email address was
    available to nginx's Server Side Include module via the embedded
    $http_x_forwarded_email variable, set by ngx_http_core_module:
    
    http://nginx.org/en/docs/http/ngx_http_core_module.html#var_http_
    
    Using this to create each directory under _site/auth seems preferable to
    $REMOTE_USER, since having the domain name available as part of the generated
    directory name may help to avoid conflicts, should we ever wish to grant
    access to users from other domains.
    Mike Bland committed Dec 14, 2014
    Configuration menu
    Copy the full SHA
    4bdd9bf View commit details
    Browse the repository at this point in the history