auth

Paddy 2014-08-16 Parent:fe7f358ecbe6

19:9fe684b33b3d Go to Latest

auth/errors.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/errors.go	Sat Aug 16 18:05:55 2014 -0400
     1.2 +++ b/errors.go	Sat Aug 16 20:02:52 2014 -0400
     1.3 @@ -21,7 +21,7 @@
     1.4  	ErrorNotAuthenticated      = errors.New("Not authenticated.")
     1.5  	InvalidClientError         = errors.New("Invalid client.")
     1.6  	AuthorizationNotFoundError = errors.New("Authorization not found.")
     1.7 -	ProfileNotFoundError       = errors.New("Profile not found.")
     1.8 +	ErrProfileNotFound         = errors.New("Profile not found.")
     1.9  	TokenNotFoundError         = errors.New("Token not found.")
    1.10  	NilClientError             = errors.New("Client was nil.")
    1.11  )