Coder Social home page Coder Social logo

Comments (1)

obgm avatar obgm commented on August 17, 2024 1

To clarify: The token in a CoAP message is used to match a CoAP response to the CoAP request that has triggered this reponse. By this, it is inherently tied to the CoAP messaging layer.
According to your description it seems that you want to try to pass an authorization token (sometimes inaccurately called access token) for some application protocol. This is transparent to CoAP and therefore, libcoap has no direct support for this (although you can retrieve the token in the CoAP PDU in the request handler to achieve what you are trying to do). Your scenario warrants for using a POST request to convey your token.

As a side note: There is a series of IETF specifications that detail how to use CoAP (or other REST-friendly transport protocols) to not only transfer authorization tokens but also create a security association between communication peers based on this token. This is described in RFC 9200 ff. There is also an implementation of the DTLS profile based on libcoap.

from libcoap.

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.