auth

Paddy 2015-01-24 Parent:4f5d13d2f7c7 Child:bc842183181d

131:f474ce964dcf Go to Latest

auth/client_test.go

Implement handlers for retrieving clients. Create a GetClientHandler and ListClientsHandler for retrieving details about a client. Currently, we're not returning the client secret for these clients. We're also not doing any auth. We may want to restrict auth to the owner of the clients, and return secrets only when auth'd, and maybe even only when a special header is included. Alternatively, we could only return the secret when retrieving a single client. Still unsure how I want to handle that.

History
     1.1 --- a/client_test.go	Sat Jan 24 09:48:12 2015 -0500
     1.2 +++ b/client_test.go	Sat Jan 24 10:34:33 2015 -0500
     1.3 @@ -782,3 +782,5 @@
     1.4  }
     1.5  
     1.6  // BUG(paddy): We need to test the clientCredentialsValidate function.
     1.7 +// BUG(paddy): We need to test the GetClientHandler.
     1.8 +// BUG(paddy): We need to test the ListClientsHandler.