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

Method SetAuthStore

api/client/connection.go:83–91  ·  view source on GitHub ↗
(store *auth0.Store)

Source from the content-addressed store, hash-verified

81}
82
83func (c *Connection) SetAuthStore(store *auth0.Store) error {
84 tokens, err := store.Tokens(c.hostURL)
85 if err != nil || tokens == nil {
86 return err
87 }
88 c.auth = store
89 c.SetAuthToken(tokens.Access)
90 return nil
91}
92
93func (c *Connection) SetUserAgent(useragent string) {
94 c.defaultHeader.Set("User-Agent", useragent)

Callers 2

ConnectionMethod · 0.80
TestClientRedirectReplayFunction · 0.80

Calls 2

SetAuthTokenMethod · 0.95
TokensMethod · 0.45

Tested by 1

TestClientRedirectReplayFunction · 0.64