auth

Paddy 2014-12-13 Parent:1fb166575e69 Child:9c50b2e2e03b

90:d5561856f45e Go to Latest

auth/authcode.go

Log ignored errors, grant revocations can return an error. Turn a few TODOs for logging errors into calls to log the actual error. Change the return type of grant revocations for GrantTypes to an error, so they can be logged by the system, not each GrantType. Implement a stub of the revocation function for the authcode GrantType.

History
     1.1 --- a/authcode.go	Sat Dec 13 19:11:38 2014 -0500
     1.2 +++ b/authcode.go	Sat Dec 13 19:16:57 2014 -0500
     1.3 @@ -114,3 +114,8 @@
     1.4  	}
     1.5  	return authCode.Scope, authCode.ProfileID, true
     1.6  }
     1.7 +
     1.8 +func authCodeGrantInvalidate(r *http.Request, context Context) error {
     1.9 +	// TODO(paddy): implement marking the authcode as used.
    1.10 +	return nil
    1.11 +}