MCPcopy Create free account
hub / github.com/brimdata/super / AuthMethod

Method AuthMethod

api/client/connection.go:431–436  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

429}
430
431func (c *Connection) AuthMethod(ctx context.Context) (api.AuthMethodResponse, error) {
432 req := c.NewRequest(ctx, http.MethodGet, "/auth/method", nil)
433 var method api.AuthMethodResponse
434 err := c.doAndUnmarshal(req, &method)
435 return method, err
436}
437
438func (c *Connection) AuthIdentity(ctx context.Context) (api.AuthIdentityResponse, error) {
439 req := c.NewRequest(ctx, http.MethodGet, "/auth/identity", nil)

Callers 4

refreshAuthTokenMethod · 0.95
TestAuthMethodMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80

Calls 2

NewRequestMethod · 0.95
doAndUnmarshalMethod · 0.95

Tested by 1

TestAuthMethodMethod · 0.64