equal
deleted
inserted
replaced
17 |
17 |
18 // NoRedirect is the URI for no redirection in the App registration |
18 // NoRedirect is the URI for no redirection in the App registration |
19 NoRedirect = "urn:ietf:wg:oauth:2.0:oob" |
19 NoRedirect = "urn:ietf:wg:oauth:2.0:oob" |
20 ) |
20 ) |
21 |
21 |
|
22 // Error codes |
22 var ( |
23 var ( |
23 ErrAlreadyRegistered = errors.New("App already registered") |
24 ErrAlreadyRegistered = errors.New("app already registered") |
|
25 ErrEntityNotFound = errors.New("entity not found") |
24 ) |
26 ) |
25 |
27 |
26 // prepareRequest insert all pre-defined stuff |
28 // prepareRequest insert all pre-defined stuff |
27 func (g *Client) prepareRequest(what string) (req rest.Request) { |
29 func (g *Client) prepareRequest(what string) (req rest.Request) { |
28 var endPoint string |
30 var endPoint string |