Giter Club home page Giter Club logo

Comments (4)

rhainer avatar rhainer commented on August 19, 2024

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.

sajjadsaleem avatar sajjadsaleem commented on August 19, 2024

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.

sajjadsaleem avatar sajjadsaleem commented on August 19, 2024

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.

ggoldens avatar ggoldens commented on August 19, 2024

@sajjadsaleem have you fixed this issue already?

from interactive-broadcast-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.