auth

Paddy 2014-08-16 Parent:1f04b1146cad

19:9fe684b33b3d Go to Latest

auth/context.go

Implement session management and move login. Add a session store interface to validate and retrieve data about sessions. Implement session management in endpoints that need session support. Move the login functionality from inlined into the OAuth flow into its own handler, that the OAuth flow will redirect to. The login functionality should take a redirect URL parameter to return to the OAuth flow when login is completed.

History
     1.1 --- a/context.go	Sat Aug 16 18:05:55 2014 -0400
     1.2 +++ b/context.go	Sat Aug 16 20:02:52 2014 -0400
     1.3 @@ -15,6 +15,7 @@
     1.4  	Clients   ClientStore
     1.5  	Tokens    TokenStore
     1.6  	Profiles  ProfileStore
     1.7 +	Sessions  SessionStore
     1.8  	Log       *log.Logger
     1.9  	Templates Templates
    1.10  }