auth

Paddy 2015-05-12 Parent:04c8edf89e3b Child:581c60f8dd23

167:0ff23f3a4ede Go to Latest

auth/request.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.

History
     1.1 --- a/request.go	Mon May 11 21:25:18 2015 -0400
     1.2 +++ b/request.go	Tue May 12 21:14:21 2015 -0400
     1.3 @@ -34,6 +34,7 @@
     1.4  	Clients   []Client       `json:"clients,omitempty"`
     1.5  	Endpoints []Endpoint     `json:"endpoints,omitempty"`
     1.6  	Sessions  []Session      `json:"sessions,omitempty"`
     1.7 +	Tokens    []Token        `json:"tokens,omitempty"`
     1.8  }
     1.9  
    1.10  type requestError struct {