auth
auth/profile.go
Implement an endpoint for token information. Implement an endpoint that allows us to look up information on a token. We strip the refresh token before the response is sent to avoid leaking the response token.
1.1 --- a/profile.go Mon May 11 21:25:18 2015 -0400 1.2 +++ b/profile.go Tue May 12 21:14:21 2015 -0400 1.3 @@ -463,6 +463,7 @@ 1.4 r.Handle("/profiles/{id}", wrap(context, GetProfileHandler)).Methods("GET", "OPTIONS") 1.5 r.Handle("/profiles/{id}", wrap(context, UpdateProfileHandler)).Methods("PATCH", "OPTIONS") 1.6 r.Handle("/profiles/{id}", wrap(context, DeleteProfileHandler)).Methods("DELETE", "OPTIONS") 1.7 + // TODO: r.Handle("/profiles/{id}/tokens", wrap(context, ListTokensHandler)).Methods("GET", "OPTIONS") 1.8 // BUG(paddy): We need to implement a handler that will add a login to a profile. 1.9 // BUG(paddy): We need to implement a handler that will remove a login from a profile. What happens to sessions created with that login? 1.10 // BUG(paddy): We need to implement a handler that will list the logins attached to a profile.