Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 20, 2011
  1. @vinoski

    major trailing whitespace cleanup

    vinoski authored
    Remove trailing whitespace in all .erl and .hrl files in the
    repository.
    
    If you're an emacs user, you can easily see trailing whitespace using
    settings like these in your ~/.emacs file:
    
    (setq-default show-trailing-whitespace t)
    (set-face-background 'trailing-whitespace "slate gray")
    
    You can also delete trailing whitespace automatically when you save
    your Erlang sources by setting the emacs before-save-hook in your
    ~/.emacs file like this:
    
    (add-hook 'before-save-hook
              '(lambda () (if (eq major-mode 'erlang-mode)
                              (delete-trailing-whitespace))))
Commits on Sep 22, 2009
  1. Auth enhancements by Anders Dahlin,

    authored
    - Auth - unauthorized enhancements
    - Setup auth rewrite/cleanup
    - (Embedded) Config enhancements
Commits on Jun 23, 2009
  1. @faal

    Yaws patch

    faal authored committed
    Hi!
    
    Here is the patch, as promised. Not sure this solution is optimal but it
    should work.
    
    To be honest I've only done basic testing (bit tired by now..) so would
    be good if you could give it a run before you put it out. I checked out
    the 1.82 tag from github so that's the version you should apply the
    patch to.
    
    // Fabian
    
    From 4636b0d096a061a0af6c2034446926bdba4259ed Mon Sep 17 00:00:00 2001
    From: Fabian Alenius <faal@faal.(none)>
    Date: Fri, 19 Jun 2009 01:17:44 +0200
    Subject: [PATCH] Fixed backwards compatibility
Commits on Apr 24, 2009
  1. @faal

    1. Fixed so that the HTTP status is set to 401 explicitly in

    faal authored
    yaws_server:handle_ut(...), previously out401 needed to return
    {status, ...} or status would default to 200.
    
    2. Changed outmod:out401(...) so that it returns {ehtml, ...} instead of
    {status, ...}
    
    3. Documented the errmormod_401 option in the man page.
Commits on Apr 15, 2009
  1. @faal

    Changed the way authentication is done, added support for multiple au…

    faal authored
    …thentication methods to be used for one directory and changed so that the
    
    401 page can be customized similarly to the 404 page.
    
    1. Renamed yaws_401.erl to yaws_outmod.erl, which is probably a better name considering it's current use(it also displays the crashmsg).
    2. Fixed the Makefile accordingly.
    2. Changed so that the auth record not only contains the authentication methods but also the headers that should be displayed for the
    directory.
    3. The headers are added in yaws_config.erl when the config file is parsed, the authmods now has to have a function get_headers/1 that
    returns the http headers that are to be displayed.
    3. is_auth now goes through the list of directories and when a matching directory is found it calls handle_auth which does the actual
    checking.
    4. handle_auth checks all the methods specified in the config file, if _one_ returns true, the user is authorized to view the page.
    5. Removed deliver_401 and changed so that handle_ut is called with UrlType = unauthorized.
    6. Changed handle_ut to handle UrlType = unauthorized, it handles it similarly to when it displays 404. It pulls the errormod_401 from the
    GC and calls out401 to display the actual page.
    7. Added a function outh_set_auth/1 to yaws.erl which takes a string or a {realm, Realm} tuple and returns the corresponding WWW-Authenticate
    header.
    8. Fixed so that the headers are displayed when the 401 page is displayed.
    9. Removed the special handling of appmod in handle_request. Previously authmods would return appmod when they wanted the 401 page to be
    displayed, this is no longer neccessary.
    10. Removed the out function from authmod_gssapi.erl.
    11. Changed the behaviour of authmod_gssapi so that it simply returns fales when it doesn't find called with the correct headers.
    Previously it would crash.
    
    TODO: Add support for multiple authmods and Pam modules for one directory.
    Rewrite authmod_gssapi so that it simply returns true or false.
    Fix a bug in yaws_ls, it links directories without the final / which means that every time you enter a directory first a 302 page is sent with
    a redirect to "dir/".
    Properly sort the WWW-authenticate headers, apparently the order mathers. For example Negoiate needs to be above Basic realm for
    it to use Negoiate.
Something went wrong with that request. Please try again.