SDK
SDK Golang v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

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")
}