auth

Paddy 2014-12-13 Parent:9c50b2e2e03b Child:e57a57a944c4

95:b0a759e00e6d Browse Files

Add a TODO for code cleanup. We want to separate the logic for determining if a redirect URI is valid for any given client into its own helper, as we'll probably need that again.

oauth2.go

     1.1 --- a/oauth2.go	Sat Dec 13 19:38:56 2014 -0500
     1.2 +++ b/oauth2.go	Sat Dec 13 19:45:38 2014 -0500
     1.3 @@ -261,6 +261,7 @@
     1.4  		}
     1.5  		return
     1.6  	}
     1.7 +	// TODO(paddy): checking if the redirect URI is valid should be a helper function
     1.8  	// whether a redirect URI is valid or not depends on the number of endpoints
     1.9  	// the client has registered
    1.10  	numEndpoints, err := context.CountEndpoints(clientID)