MCPcopy
hub / github.com/zitadel/oidc / WithParent

Method WithParent

pkg/oidc/error.go:186–189  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

184}
185
186func (e *Error) WithParent(err error) *Error {
187 e.Parent = err
188 return e
189}
190
191// WithReturnParentToClient allows returning the set parent error to the HTTP client.
192// Currently, it only supports setting the parent inside JSON responses, not redirect URLs.

Callers 15

AuthorizeCodeClientFunction · 0.80
AuthRequestByCodeFunction · 0.80
RevokeFunction · 0.80
ParseDeviceCodeRequestFunction · 0.80
deviceAccessTokenFunction · 0.80
AuthorizeFunction · 0.80
ParseAuthorizeRequestFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestTryErrorRedirectFunction · 0.64
TestError_MarshalJSONFunction · 0.64