auth

Paddy 2014-10-16 Parent:116342ffc65f Child:a5987795707e

53:28d48fdb0dd1 Go to Latest

auth/http.go

Test all possible successful requests, fix query setting in test. Test all the possible successful requests for an authorization code grant. Fix a bug wherein the query string wasn't actually set for the test.

History
1 package auth
3 import (
4 "log"
5 "net/http"
6 )
8 const getGrantTemplateName = "get_grant"
10 func GetGrantHandler(w http.ResponseWriter, r *http.Request, context Context) {
11 w.WriteHeader(http.StatusOK)
12 err := context.Render(w, getGrantTemplateName, nil)
13 if err != nil {
14 log.Println("Error rendering template for GetGrantHandler:", err)
15 }
16 }