Hello Sir,
We have installed Licode on Ubuntu 14.04 LTS on Microsoft Azure
(1) When I execute
command to initate Licode: fixer.csv-webrtc.03@fixer-cvc-webrtc-03:~$
./licode/scripts/initLicode.sh
I get following output
Output: 16407
16415
[licode] Done, run basic_example/basicServer.js
fixer.csv-webrtc.03@fixer-cvc-webrtc-03:~$ 2016-11-02 08:40:52.258 - INFO:
ErizoAgent - message: launched new ErizoJS, erizoId:
4594018e-d6ad-27ed-1dd4-3650085a2394
2016-11-02 08:40:52.923 - INFO: ErizoController - message: succesfully
added to cloudHandler
[erizo-4594018e-d6ad-27ed-1dd4-3650085a2394] 2016-11-02 08:40:52.947 -
INFO:
(2) When I give command to run basic example:
Erfixer.csv-webrtc.03@fixer-cvc-webrtc-03:~$
./licode/scripts/initBasicExample.sh
I get following output:
output: fixer.csv-webrtc.03@fixer-cvc-webrtc-03:~$ authHeader MAuth
realm=http://marte3.dit.upm.es,mauth_signature_method=HMAC_SHA1,mauth_serviceid=5818949832b842974e3f968b,mauth_cnonce=25277,mauth_timestamp=1478076077236,mauth_signature=ZWQzNzQ1YmFhYzNhOTZlNDM5OGY0YzQ1YWI0MGViYWZjM2NhMTdhZA==
authHeader MAuth
realm=http://marte3.dit.upm.es,mauth_signature_method=HMAC_SHA1,mauth_serviceid=5818949832b842974e3f968b,mauth_cnonce=98767,mauth_timestamp=1478076077488,mauth_signature=YjgzODMxZjdlNDc4ODk4NTE0ODVlNGYzNDU1ZWZlNzgyMmM4YjNlYQ==
BasicExample started
(3) Then I use serverUrl =
‘http://fixer-cvc-webrtc-03.japanwest.cloudapp.azure.com:3000/’; in client
side and try to get token
createToken(‘user’, ‘presenter’, roomName, function (response) {
var token = response;
console.log(token); …
Here I get console.log {“WWW-Authenticate”:“MAuth
realm=“http://marte3.dit.upm.es””}
(4) On server side I added console.log
in \licode\nuve\nuveAPI\auth\nuveAuthenticator.js as shown below
exports.authenticate = function (req, res, next) {
var authHeader = req.header(‘Authorization’),
challengeReq = ‘MAuth realm=“http://marte3.dit.upm.es”’,
params;
console.log(“authHeader”,authHeader);
output: Here i get authHeader as undefined.
Requested step by step instruction to fix this issue
thanks in advance.