enjalot/tributary — pull request #21 by bollig (2012-08-18 01:13:09+00:00)
Title: Improved login/logout

A few fixes. Really was a hack job tonight, so you might want to walk through the changes and clear out unnecessary junk.

The github-login/github-logout routines in app.py support variable product names (tested on tributary, but should work on cypress, delta, etc).

Login and Logout redirect back to the page on which the button was pressed rather than initialize an empty inlet. For login I pass the "next" url as the state variable to github oauth so the page is known when the github-authenticated callback is made.

The login/logout button on inlets uses similar logic as the Save/Fork onclick routine.

The page now shows a brief "Currently logged in as ___" to avoid confusion as to who is the owner of the current inlet and who will do the forking.