MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / ParseAuth

Method ParseAuth

sdk/pluginhost/host.go:96–101  ·  view source on GitHub ↗

ParseAuth lets plugin auth providers parse a credential payload.

(ctx context.Context, req pluginapi.AuthParseRequest)

Source from the content-addressed store, hash-verified

94
95// ParseAuth lets plugin auth providers parse a credential payload.
96func (h *Host) ParseAuth(ctx context.Context, req pluginapi.AuthParseRequest) (*coreauth.Auth, bool, error) {
97 if h == nil || h.inner == nil {
98 return nil, false, nil
99 }
100 return h.inner.ParseAuth(ctx, req)
101}
102
103// ParseAuths lets plugin auth providers expand one credential payload into multiple auth records.
104func (h *Host) ParseAuths(ctx context.Context, req pluginapi.AuthParseRequest) ([]*coreauth.Auth, bool, error) {

Callers

nothing calls this directly

Calls 1

ParseAuthMethod · 0.65

Tested by

no test coverage detected