SDK
SDK Golang v1.x
1

# GetStrategies

Gets all authentication strategies registered in Kuzzle.

# Arguments

Copied to clipboard!
func (a *Auth) GetStrategies(options types.QueryOptions) ([]string, error)
Arguments Type Description
options
query_options*
A pointer to a kuzzleio::query_options containing query options

# Options

Additional query options

Property Type Description Default
Queuable
bool
Make this request queuable or not true

# Return

An array of string containing the list of strategies and an error or nil.

# Usage

Copied to clipboard!
kuzzle.Auth.Login("local", json.RawMessage("{\"username\":\"foo\",\"password\":\"bar\"}"), nil)
_, err := kuzzle.Auth.GetStrategies(nil)
if err != nil {
  log.Fatal(err)
} else {
  fmt.Println("Success")
}