(c *echo.Context, statusCode int, errorCode, description string)
| 242 | } |
| 243 | |
| 244 | func oauth2Error(c *echo.Context, statusCode int, errorCode, description string) error { |
| 245 | return c.JSON(statusCode, map[string]string{ |
| 246 | "error": errorCode, |
| 247 | "error_description": description, |
| 248 | }) |
| 249 | } |
| 250 | |
| 251 | func oauth2ErrorRedirect(c *echo.Context, redirectURI, state, errorCode, description string) error { |
| 252 | u, err := url.Parse(redirectURI) |
no outgoing calls
no test coverage detected