ScopesResponder returns a response with a 200 status code and the given OAuth scopes.
(scopes string)
| 249 | |
| 250 | // ScopesResponder returns a response with a 200 status code and the given OAuth scopes. |
| 251 | func ScopesResponder(scopes string) func(*http.Request) (*http.Response, error) { |
| 252 | //nolint:bodyclose |
| 253 | return StatusScopesResponder(http.StatusOK, scopes) |
| 254 | } |
| 255 | |
| 256 | // StatusScopesResponder returns a response with the given status code and OAuth scopes. |
| 257 | func StatusScopesResponder(status int, scopes string) func(*http.Request) (*http.Response, error) { |