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 #

func (a *Auth) GetStrategies(options types.QueryOptions) ([]string, error)
ArgumentsTypeDescription
options
query_options*
A pointer to a kuzzleio::query_options containing query options

Options #

Additional query options

PropertyTypeDescriptionDefault
Queuable
bool
Make this request queuable or nottrue

Return #

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

Usage #

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