You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 28, 2022. It is now read-only.
As stated [here](http://kuzzle.io/api-reference/#sending-metadata) you can add metadata to a subscription.
78
+
79
+
```java
80
+
KuzzleOptions options =newKuzzleOptions();
81
+
JSONObject metadata =newJSONObject();
82
+
metadata.put("foo", "bar");
83
+
options.setMetadata(metadata);
84
+
myCollection.subscribe(options);
85
+
```
86
+
87
+
# Login
88
+
89
+
## Prerequisite
90
+
91
+
To login using kuzzle you need at least one authentication plugin. You can refer [here](https://github.com/kuzzleio/kuzzle-plugin-auth-passport-local) for a local authentication plugin
92
+
or [here](https://github.com/kuzzleio/kuzzle-plugin-auth-passport-oauth) to refer to our OAuth2 plugin.
93
+
94
+
To know more about how to log in with a Kuzzle SDK, please refer to our [documentation](http://docs.kuzzle.io/sdk-reference/kuzzle/login/)
95
+
96
+
If you have the kuzzle-plugin-auth-passport-local installed you can login using either the Kuzzle's constructor or the login method.
97
+
98
+
### Login with an OAuth strategy
99
+
100
+
If you have an OAUTH plugin like kuzzle-plugin-auth-passport-oauth, you may use the KuzzleWebViewClient class to handle the second authentication phase:
0 commit comments