Open atomashpolskiy opened 5 years ago
Oh, and one more thing. Event timestamps are in seconds since Cortex startup (!)
I realized that I don't quite understand, why clientId/clientSecret are needed during the login procedure. Thing is, there is a user account in Emotiv, which you log in into by providing username and password. A user may have multiple "Cortex apps", which are, basically, access tokens: https://www.emotiv.com/my-account/cortex-apps/ (by the way, no clientSecret there, only clientId). In my view, it would be logical to provide only username and password during the login, and then provide clientId/clientSecret in the authorize request. But whatever.
Also, in official docs there is inconsistency between sections https://emotiv.github.io/cortex-docs/#querysessions and https://emotiv.github.io/cortex-docs/#session-object, e.g.:
querySessions
response contains client
attribute, but Session object definition does notheadset
attribute in querySessions
response is a string literal (headset ID), but in Session definition it is an objectCan you contact Emotiv support for those questions ?
Sure, but I hope that we'd be able to figure out some of these ourselves, and if any questions remain unclear after tests, I'll make sure to contact Emotiv support.
Reminder for myself on some of the probable errors, which we should test:
1) Invalid Emotiv credentials 2) Authz token expires (must refresh and continue) 3) Headset gets unplugged (this one is unclear, need to check on real Cortex) 4) Cortex server gets restarted (this one includes starting Cortex after Octopusync) 5) Octopusync restart (auth/authz procedure; restoring state of Cortex sessions; termination of subscriptions by Cortex)
Also this, but we probably don't need to check/test it at the moment: 6) Existence of sessions (for test headsets), owned by another user
See in Wiki