I have encountered an issue while trying to integrate video chat into my Java web application using QuickBlox. I am utilizing Angular/JavaScript on the frontend.
The problem arises when attempting to create a session for a user that I have created in QuickBlox through the API. Strangely, I can successfully create a session for the Admin user, which is the account under which I originally set up QuickBlox.
Upon retrieving the user from QuickBlox on the Java side, the result looks like this:
HTTP/1.1 200 OK
{"user":"id":24837946,"owner_id":63610,"full_name":"lakshay","email":"[email protected]","login":"[email protected]","phone":null,"website":null,"created_at":"2017-03-04T05:36:43Z","updated_at":"2017-03-04T05:36:43Z","last_request_at":null,"external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}}
HTTP/1.1 200 OK
{"user":"id":24837064,"owner_id":63610,"full_name":"lakshay","email":"[email protected]","login":"[email protected]","phone":null,"website":null,"created_at":"2017-03-04T04:53:35Z","updated_at":"2017-03-04T04:53:35Z","last_request_at":null,"external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}}
Even though these users exist in QuickBlox, I am unable to create a session for them.
On the JavaScript side, when sending data in the create session method, it looks like this:
{
application_id: 50623,
auth_key: "2Z77VTuccR3XzLf",
nonce: 439,
signature: "8648eaeaf2922f4b58e7847159267d60f45dbd04",
timestamp: 1488626331,
user: {
login:"[email protected]",
password:"xyz"
}
}
However, I encounter the following error in the JS side during the create session method:
object {code: 401, status: "error", message: "Unauthorized", detail: "{"errors":["Unauthorized"]}"}
It's worth noting that I am currently using the Starter Plan offered by QuickBlox.