auth

Paddy 2014-12-07 Parent:1dc4e152e3b0 Child:1fb166575e69

86:7f64033806bb Go to Latest

auth/oauth2.go

Document RenderJSONToken. Document the RenderJSONToken to satisfy golint.

History
     1.1 --- a/oauth2.go	Sun Dec 07 02:52:39 2014 -0500
     1.2 +++ b/oauth2.go	Sun Dec 07 02:54:42 2014 -0500
     1.3 @@ -111,6 +111,8 @@
     1.4  	}
     1.5  }
     1.6  
     1.7 +// RenderJSONToken is an implementation of the ReturnToken function for GrantTypes. It returns the token using JSON
     1.8 +// according to the spec. See RFC 6479, Section 4.1.4.
     1.9  func RenderJSONToken(w http.ResponseWriter, r *http.Request, token Token, context Context) bool {
    1.10  	enc := json.NewEncoder(w)
    1.11  	resp := tokenResponse{