Authentication


Important :
This part only concerns the connection to Golem.ai servic when it is hosted online.
If the service is embedded or hosted by yourself, skip to the next step. .


The first stage is confirming your identity by sending the token given by your client interface.

Reminder
TCP connection adress : golem.ai:3003
WS connection adress : golem.ai:3004

authentificationAll -> Service
   {
       "type" : "authentication",
       "token" : "abcdef0123456"
   }

Answer

Authentication succeded :

authentication_statusService -> All
   {
       "type" : "authentication_status",
       "result" : "ok"
   }

If the token does not correspond to any user :

authentication_statusService -> All
   {
       "type" : "authentication_status",
       "result" : "ko"
   }

API connection address :

TCP : golem.ai:3003
Web Socket : golem.ai:3004/ws
Web Socket Sécurisé (WSS) : golem.ai:3005/ws
HTTP : golem.ai:3004/http
HTTPS : golem.ai:3005/http