CoAP observation after access revocation

CoAP observation after access revocation

Try

Choose a policy, then use Request observation and Publish resource change. Predict delivery before each change. After Revoke access, request observation again and publish another change. Repeat with the other policy.

Client and CoAP server (simulated)

Client → registration request → server · protected temperature resource

Client ← change notification when an observer is active ← server

Current access
Allowed
Observer
Inactive
Last delivery
None

Server evidence

No events recorded.

    Access allowed. Observer inactive. Waiting for the first event.

    Observe

    After Revoke access, the next Request observation logs Registration denied in both policies. Compare the observer state and last delivery after Publish resource change.

    Explain

    Admission and active observations removes the stored observer when access is revoked. Admission only denies new registration and leaves the stored observer active. The registration and delivery entries answer different questions.

    Technical boundaries

    This state model uses symbolic resource changes and a local server log. It leaves out message encodings, timing, transport and retries, and assumes no notification is in flight at revocation. Withheld is a server log entry. After cleanup the client sees silence.

    Back to the chapter