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

Function NewClient

api/client/auth0/auth0.go:62–68  ·  view source on GitHub ↗
(config api.AuthMethodAuth0Details)

Source from the content-addressed store, hash-verified

60}
61
62func NewClient(config api.AuthMethodAuth0Details) (*Client, error) {
63 u, err := url.Parse(config.Domain)
64 if err != nil {
65 return nil, err
66 }
67 return &Client{config: config, url: *u}, nil
68}
69
70func (c *Client) GetDeviceCode(ctx context.Context, scope string) (DeviceCodeResponse, error) {
71 type deviceCodeRequest struct {

Callers 2

RunMethod · 0.92
refreshAuthTokenMethod · 0.92

Calls 1

ParseMethod · 0.80

Tested by

no test coverage detected