auth

Paddy 2015-01-04 Parent:bc77a315f823 Child:d46d22e5b5d6

108:2e4b5722eed0 Go to Latest

auth/request.go

Add support for registering Clients. Add an API endpoint to register Clients, which was the last step necessary before the OAuth2 integration could be tried out.

History
     1.1 --- a/request.go	Wed Dec 17 22:27:44 2014 -0500
     1.2 +++ b/request.go	Sun Jan 04 00:07:27 2015 -0500
     1.3 @@ -28,9 +28,11 @@
     1.4  )
     1.5  
     1.6  type response struct {
     1.7 -	Errors   []requestError `json:"errors,omitempty"`
     1.8 -	Logins   []Login        `json:"logins,omitempty"`
     1.9 -	Profiles []Profile      `json:"profiles,omitempty"`
    1.10 +	Errors    []requestError `json:"errors,omitempty"`
    1.11 +	Logins    []Login        `json:"logins,omitempty"`
    1.12 +	Profiles  []Profile      `json:"profiles,omitempty"`
    1.13 +	Clients   []Client       `json:"clients,omitempty"`
    1.14 +	Endpoints []Endpoint     `json:"endpoints,omitempty"`
    1.15  }
    1.16  
    1.17  type requestError struct {