Remove cruft.
Remove the use of a global app object in the module.
Reorganize imports
Comment and logic organization and clarity.
Setup code for the module wouldn't seem to be required anymore.
Replace login redirect with a 403.
Provide demilitarized zone paths for the authorization code. And rename a constant.
First stage of the cnx-user service cooperative api. Contains enough information to grab verify the authentication and get a user-id. This does not currently hook into the existing session code.
Remove unused/unneeded configuration key value pairs.
Check status code returned from the cnx-user service. Raise appropriate errors when necessary.
The valid view replaces the after_authentication logic.
Save the verified user id to a newly created session and redirect the user to where they originally came from.
Fixes the missing user metadata. This information will not be handled from within ATC, which will contact the cnx-user instance directly.
Use a 401 unauthorized instead of a 403 forbidden when a user makes a request anywhere.
Merge pull request #135 from Connexions/with-cnx-user

With cnx-user