OSCORE fallback use cases
See original GitHub issueUsing OSCORE, I found a pretty simple use case where the client will not be able to connect to the server anymore.
- I launch a
leshan-server-demo
- I create oscore config for my device in the UI
- I launch a
leshan-client-demo
using the corresponding OSCORE setting - simulate a crash (
kill -9 PID
on linux), this way the client doesn’t send a deregister. - then I try to relaunch the client (same OSCORE config)
- and I get a :
Registration failed: UNAUTHORIZED(401) Replay detected.
@rikard-sics any idea about this ? and how we could handle this ?
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
What are some practical use cases of the fallback function?
A common use case is to program the fallback function on a front-facing “proxy” contract to delegate all received calls to an “implementation” ......
Read more >Ethernaut Lvl 1 Walkthrough: how to abuse the Fallback function
Your winning fallback function call needs to contain some Ether value. Using Remix IDE: Paste the contract code into the UI. This gives...
Read more >Solidity v0.6.0. Fallback functions. What are they needed for?
Another use case is for proxy contracts which routes the incoming requests to the upgradeable target contract. the fallback function in ...
Read more >Control complexity in Bucklin and fallback voting: A theoretical ...
Since Bucklin voting is a special case of fallback voting, each resistance result for Bucklin voting strengthens the corresponding resistance result for ...
Read more >Composite locator tuning tips—ArcGIS Pro | Documentation
Order by role and score—Participating locators are grouped by role and fallback order. It is recommended that you use this option if you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hmm, it is hard to say what is going wrong from just a look at the output. I will try to take some time to test and see if I can figure out what is happening. Today is a bit tricky but I will try to do it as soon as I can.
I try to investigate on this.
Looking at cf test, I saw that maybe the carlifornium API to do that is :
So I tried to add this to InMemoryOscoreContextDB.deriveContext :
But then I’m not able to connect with OSCORE anymore because of :
java.lang.IllegalArgumentException: Internal Leshan operations should always use a null ID Context
. Raised byInMemoryOscoreContextDB.getContext(byte[] rid, byte[] IDContext)
So I tried to remove the check just for testing but this failed with :
Finally, I get to the conclusion that I’m not really able to do that without someone who really well understands OSCORE RFC and OSCORE Californium code, so I give up for now to try to do this alone.
@rikard-sics, I’m waiting for your help 🙏 !