SDK
SDK Golang v3.x
2

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