GetStrategies #
Gets all authentication strategies registered in Kuzzle.
Arguments #
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 #
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") }