Git Product home page Git Product logo

Comments (3)

megamk avatar megamk commented on May 13, 2024

Hello @tompierce thank you for your feedback!

authToken is used for authentication, and you need to provide it always, no matter if you're providing username and password to connect to a channel or not. Here is the doc on how to generate tokens.

If no username parameter is set in the parameters object session will try to connect to a channel in anonymous mode. Anonymous users won't be able to start outgoing messages. Anonymous access support is there for ZelloWork channels and will be added to public zello channels soon with an option for channel owners to enable or disable anonymous access to their channels.

from zello-channel-api.

tompierce avatar tompierce commented on May 13, 2024

Thanks for the prompt response @megamk.

Does the JS SDK support any sort of session refresh? We are trying to avoid having to store Zello credentials, as this poses an increased security risk. Are there plans to add OAuth, or similar, support? Then we could authenticate once, and use a revokable token for future authentications.

from zello-channel-api.

tompierce avatar tompierce commented on May 13, 2024

We're starting work on a basic integration using the JS SDK. Could you confirm that this is the expected login flow:

  • Client app retrieves an authToken from our server (JWT, signed with the private key generated by the Zello Work admin panel)

  • Client app prompts user for username, password, channel name

  • Client app starts a session by creating a ZCC.Session with the auth_token, username, password, channel parameters.

  • If the client app loses connection, we need to create a new session and provide the same parameters: auth_token, username, password, channel.

Could we store the username and password in the JWT payload of the auth_token? That would allow us to just store the token, which has the benefits of being expirable and encrypted.

from zello-channel-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.