Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Auto refresh auth token #88

Merged
merged 16 commits into from
May 12, 2015
Merged

Auto refresh auth token #88

merged 16 commits into from
May 12, 2015

Commits on May 8, 2015

  1. Extract ProcessCookie() from ServeHTTP()

    Mike Bland committed May 8, 2015
    Configuration menu
    Copy the full SHA
    1bd90ce View commit details
    Browse the repository at this point in the history
  2. Extract MakeCookie()

    Mike Bland committed May 8, 2015
    Configuration menu
    Copy the full SHA
    beed9fb View commit details
    Browse the repository at this point in the history
  3. Ensure all errors are logged in ProcessCookie()

    Mike Bland committed May 8, 2015
    Configuration menu
    Copy the full SHA
    f554f99 View commit details
    Browse the repository at this point in the history
  4. Add ProcessCookie() test

    Mike Bland committed May 8, 2015
    Configuration menu
    Copy the full SHA
    5cbdb74 View commit details
    Browse the repository at this point in the history
  5. Implement cookie auto-refresh

    The intention is to refresh the cookie whenever the user accesses an
    authenticated service with less than `cookie-refresh` time to go before the
    cookie expires.
    Mike Bland committed May 8, 2015
    Configuration menu
    Copy the full SHA
    8e2d836 View commit details
    Browse the repository at this point in the history
  6. Introduce validate-url flag/config

    Mike Bland committed May 8, 2015
    Configuration menu
    Copy the full SHA
    7285701 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2015

  1. ValidateToken() to check access_token validity

    Mike Bland committed May 9, 2015
    Configuration menu
    Copy the full SHA
    2537256 View commit details
    Browse the repository at this point in the history
  2. Validate access_token when auto-refreshing cookie

    Mike Bland committed May 9, 2015
    Configuration menu
    Copy the full SHA
    b6e07d5 View commit details
    Browse the repository at this point in the history
  3. Store access token when cookie-refresh is set

    cookie-refresh now no longer requires pass-access-token in order to work.
    Mike Bland committed May 9, 2015
    Configuration menu
    Copy the full SHA
    bd4eae8 View commit details
    Browse the repository at this point in the history
  4. Make ProcessCookie() fail when cookie parse fails

    Mike Bland committed May 9, 2015
    Configuration menu
    Copy the full SHA
    610341a View commit details
    Browse the repository at this point in the history
  5. Validate user during cookie refresh

    Mike Bland committed May 9, 2015
    Configuration menu
    Copy the full SHA
    84190ab View commit details
    Browse the repository at this point in the history
  6. Set cookie-refresh flag = 0; update README, config

    Mike Bland committed May 9, 2015
    Configuration menu
    Copy the full SHA
    082b7c0 View commit details
    Browse the repository at this point in the history
  7. Check cookie_secret size when cookie_refresh set

    Mike Bland committed May 9, 2015
    Configuration menu
    Copy the full SHA
    8ec967a View commit details
    Browse the repository at this point in the history
  8. Enforce that cookie_refresh < cookie_expire

    Mike Bland committed May 9, 2015
    Configuration menu
    Copy the full SHA
    41b21dd View commit details
    Browse the repository at this point in the history

Commits on May 10, 2015

  1. Calculate cookie expiration from encoded timestamp

    Found out the hard way that _incoming_ cookies do _not_ have their expiration
    timestamps encoded. To perform auto-refresh based on expiration time, we have
    to recalculate it from the time encoded in the cookie value.
    Mike Bland committed May 10, 2015
    Configuration menu
    Copy the full SHA
    37f287b View commit details
    Browse the repository at this point in the history

Commits on May 11, 2015

  1. Configuration menu
    Copy the full SHA
    2808ba7 View commit details
    Browse the repository at this point in the history