Coder Social home page Coder Social logo

Comments (1)

disa6302 avatar disa6302 commented on July 23, 2024

@xiaomizhouya ,

The nonce is a unique value generated by the TURN server and used once. When a client sends a request, it includes this nonce. If an attacker tries to replay a previously captured request, the nonce will have changed, and the server will recognize it as invalid. Nonces are used along with the username and password to authenticate requests. The server generates the nonce, and the client must include this nonce in its subsequent requests. This helps ensure that the request is coming from a legitimate client. The allocate request is what sends the nonce back to the client. The first time, the TURN server responds with a 401 Unauthorized status. This response includes a nonce and realm attribute. The nonce is a unique value generated by the server, and the realm is a string used for the authentication domain.

There is no way to get around this or cache the nonce in anyway. The best way to reduce TURN related latency would be to ensure the region being used in the device is as close to the TURN server region as possible.

from amazon-kinesis-video-streams-webrtc-sdk-c.

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.