Comments (4)
Take a look at https://github.com/opentok/interactive-broadcast-api/blob/master/server/scripts/create-user.js. I believe that is a script that is intended to be used to create the first Admin user. From then on, you can create new users via the UI.
from interactive-broadcast-api.
ok thanks for your help, I am able to create a user.
It is not letting me login though probably due to the following ajax request
OPTIONS http://example.com/api/auth/token
It responds with [HTTP/1.1 401 Unauthorized 468ms]
Can you please help me resolve this as well?
from interactive-broadcast-api.
I installed ssl and made some changes in URL
Now, the response is like this.
XHR POSThttps://example.com//api/auth/token
[HTTP/1.1 401 Unauthorized 827ms]
message "Unauthorized"
stack "Error: No authorization token was found\n at APIError.ExtendableError (/home/sysadmin/server/helpers/APIError.js:14:11)
at new APIError (/home/sysadmin/server/helpers/APIError.js:30:85)\n at /home/sysadmin/conf2/config/express.js:71:22
at Layer.handle_error (/home/sysadmin/conf2/interactive-broadcast-api/node_modules/express/lib/router/layer.js:71:5)
at trim_prefix (/home/sysadmin/conf2/interactive-broadcast-api/node_modules/express/lib/router/index.js:310:13)\n at /home/sysadmin/co…dcast-api/node_modules/express/lib/router/index.js:330:12)
at next (/home/sysadmin/conf2/interactive-broadcast-api/node_modules/express/lib/router/index.js:271:10)
at Layer.handle_error (/home/sysadmin/conf2/interactive-broadcast-api/node_modules/express/lib/router/layer.js:67:12)\n at trim_prefix (/home/sysadmin/conf2/interactive-broadcast-api/node_modules/express/lib/router/index.js:310:13)
at /home/sysadmin/conf2/interactive-broadcast-api/node_modules/express/lib/router/index.js:280:7"
from interactive-broadcast-api.
@sajjadsaleem have you fixed this issue already?
from interactive-broadcast-api.
Related Issues (20)
- Error: Cannot find module '../../firebaseCredentials.json' HOT 3
- Unauthorized message HOT 2
- How can I server this API over HTTPs? HOT 1
- The engine "node" is incompatible with this module HOT 1
- jsonwebtoken-7.1.9.tgz: 7 vulnerabilities (highest severity is: 7.6)
- request-2.81.0.tgz: 7 vulnerabilities (highest severity is: 9.8)
- moment-2.22.2.tgz: 2 vulnerabilities (highest severity is: 7.5)
- storage-1.2.0.tgz: 8 vulnerabilities (highest severity is: 7.8)
- ramda-0.23.0.tgz: 1 vulnerabilities (highest severity is: 9.1)
- winston-2.3.0.tgz: 1 vulnerabilities (highest severity is: 7.8) - autoclosed HOT 1
- express-4.14.0.tgz: 4 vulnerabilities (highest severity is: 7.5)
- morgan-1.7.0.tgz: 2 vulnerabilities (highest severity is: 9.8)
- firebase-admin-4.1.2.tgz: 1 vulnerabilities (highest severity is: 7.5)
- helmet-3.1.0.tgz: 1 vulnerabilities (highest severity is: 6.1)
- express-validation-1.0.1.tgz: 6 vulnerabilities (highest severity is: 9.1)
- express-winston-2.1.2.tgz: 7 vulnerabilities (highest severity is: 9.1)
- opentok-2.9.1.tgz: 9 vulnerabilities (highest severity is: 7.6)
- express-jwt-5.1.0.tgz: 5 vulnerabilities (highest severity is: 9.1)
- cron-1.2.1.tgz: 2 vulnerabilities (highest severity is: 9.8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from interactive-broadcast-api.