Permalink
Commits on Jun 13, 2013
  1. Remove redundancy.

    brianloveswords committed Jun 13, 2013
  2. Update Makefile, readme.

    brianloveswords committed Jun 13, 2013
    * Makefile: `make` now starts the server and pipes stdout through bunyan to get
      readable logs
    * readme.md: update with information about the configuration environment
      variables necessary for bin/messina
    * [rename] bin/messina.js -> bin/messina
  3. Loggins and Messina, together again.

    brianloveswords committed Jun 13, 2013
    And by that I mean I cobbled together a script (bin/messina.js) to
    shuttle log events off to a Graylog instance (ours happens to be called
    "loggins").
    
    Note: It's mostly cobbled together by tearing apart the source of
    bunyan's CLI tool. I'd like to re-write it to be more testable.
  4. Fix console monkey patch for node v0.8

    brianloveswords committed Jun 13, 2013
    The way the `console` object is constructed changed between v0.8 and
    v0.10. In the latest version of node the object is built from a
    constructor and conveniently has _stdout and _stderr properties which
    are references to streams which console will treat as stdout and
    stderr. In v0.8 the console object is a singleton by virtue of the
    methods being directly exported, and worse, the functions write to
    process.stdout and process.stderr directly.
  5. Start structuring logs

    brianloveswords committed Jun 13, 2013
    * Swap out `winston` for `bunyan`
    * Monkey patch `console` so it always outputs to stderr
    * Add 'uncaughtException' handler and log exceptions as a fatal event
      before crashing the application.
    * Implement custom request logger similar to `connect.logger()`
  6. Merge pull request #218 from mozilla/216-multi-auth-multi-pass

    cmcavoy committed Jun 13, 2013
    Fix problem with issuer admins not seeing all badges
Commits on Jun 12, 2013
  1. Merge pull request #223 from christensenep/191-api-returns-steam-awards

    toolness committed Jun 12, 2013
    Modify API to return info about auto-awarded STEAM badges
  2. Merge pull request #221 from toolness/issue-219-issuer-claim-codes

    brianloveswords committed Jun 12, 2013
    Allow issuers to manage claim codes.
Commits on Jun 11, 2013
  1. Allow issuers to manage claim codes.

    toolness committed Jun 11, 2013
    Fixes #219.
    
    This is a kind of odd solution to the problem, because it duplicates all the
    claim-related endpoints under the `/admin/` path to the `/issue/` path,
    rather than e.g. changing the auth privileges required to access only one
    set of claim-related endpoints.
  2. Moved issuer-index.html from CSOL theme to main admin view dir.

    toolness committed Jun 11, 2013
    There was nothing CSOL-specific about the page, so we might as well move
    it.
  3. Fix stupid error in util.objWrap

    brianloveswords committed Jun 11, 2013
    When I originally wrote `objWrap`, I think I had some different use case
    in mind. What we mainly use it for here is building up '$or' queries, so
    I've fixed it to work for that use case and added a test for it.
  4. Remove dead code.

    brianloveswords committed Jun 11, 2013
Commits on Jun 8, 2013
Commits on Jun 7, 2013
  1. Merge pull request #213 from toolness/webhook-testing-api

    toolness committed Jun 7, 2013
    Added webhook testing API endpoint at `/v2/test/webhook`.
  2. Added webhook testing API endpoint at `/v2/test/webhook`.

    toolness committed Jun 7, 2013
    This simply passes the `email` and `claimCode` given by the client on to
    the `OPENBADGER_NOTIFICATION_WEBHOOK`, and returns a 200 OK response if
    the webhook returns 200, a 502 bad gateway response otherwise. Additionally,
    the body of the payload to the webhook contains the parameter `isTesting` set
    to `true`, so that the webhook endpoint knows not to treat the ping
    seriously. The API endpoint only returns a response when the webhook
    notification has completed.
    
    A robust health check on the openbadger client might create a DB entry
    for a fake claim code and have their webhook remove it when it is
    pinged and `isTesting` is set to `true`. The client could then ping
    `/v2/test/webhook` with the fake claim code, and then ensure that
    both the response is OK and the claim code no longer exists in
    its db.
  3. Added optional OPENBADGER_LIMITED_JWT_SECRET env var.

    toolness committed Jun 7, 2013
    Iff an api endpoint is accessed using this secret, then `req.authIsLimited`
    is `true`.
    
    Fixes #210, which disgusts me.
Commits on Jun 6, 2013
  1. Merge pull request #196 from toolness/issue-184-claim-code-batch-names

    cmcavoy committed Jun 6, 2013
    Add batch names to claim codes, printable handouts
  2. Merge pull request #195 from christensenep/190-reserved-claim-notific…

    cmcavoy committed Jun 6, 2013
    …ation
    
    Notify CSOL-site when a badge claim is issued, to allow emailing
  3. Merge pull request #209 from mozilla/207-filter-programs

    cmcavoy committed Jun 6, 2013
    Filterable programs TO THE MAX.