auth
auth/errors.go
Render JSON errors. Start rendering JSON errors when obtaining an access token doesn't succeed.
1.1 --- a/errors.go Fri Aug 01 23:54:30 2014 -0400 1.2 +++ b/errors.go Sun Aug 03 02:06:50 2014 -0400 1.3 @@ -3,9 +3,14 @@ 1.4 import "errors" 1.5 1.6 const ( 1.7 - ErrorServerError = "server_error" 1.8 - ErrorInvalidRequest = "invalid_request" 1.9 - ErrorAccessDenied = "access_denied" 1.10 + ErrorServerError = "server_error" 1.11 + ErrorInvalidRequest = "invalid_request" 1.12 + ErrorAccessDenied = "access_denied" 1.13 + ErrorInvalidClient = "invalid_client" 1.14 + ErrorInvalidGrant = "invalid_grant" 1.15 + ErrorUnauthorizedClient = "unauthorized_client" 1.16 + ErrorUnsupportedGrantType = "unsupported_grant_type" 1.17 + ErrorInvalidScope = "invalid_scope" 1.18 ) 1.19 1.20 var (