MCPcopy Create free account
hub / github.com/bytebase/bytebase / oauth2Error

Function oauth2Error

backend/api/oauth2/oauth2.go:244–249  ·  view source on GitHub ↗
(c *echo.Context, statusCode int, errorCode, description string)

Source from the content-addressed store, hash-verified

242}
243
244func 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
251func oauth2ErrorRedirect(c *echo.Context, redirectURI, state, errorCode, description string) error {
252 u, err := url.Parse(redirectURI)

Callers 11

handleRevokeMethod · 0.85
handleRegisterMethod · 0.85
handleGetClientMethod · 0.85
oauth2ErrorRedirectFunction · 0.85
handleAuthorizeGetMethod · 0.85
handleAuthorizePostMethod · 0.85
handleTokenMethod · 0.85
workspaceResolutionErrorFunction · 0.85
issueTokensMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected