Skip to content

Commit

Permalink
Specify disclosed properties (#502)
Browse files Browse the repository at this point in the history
Relates to #57
  • Loading branch information
ecorm committed Aug 13, 2023
1 parent bf7d47b commit 6425844
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
13 changes: 12 additions & 1 deletion rfc/text/advanced/ap_14_rpc_caller_identification.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ If above call is issued by a *Caller* with WAMP session ID `3335656`, the *Deale

Note that a *Dealer* MAY disclose the identity of a *Caller* even without the *Caller* having explicitly requested to do so when the *Dealer* configuration (for the called procedure) is setup to do so.

**Identity Information**

When *Caller* disclosure is allowed for a particular CALL message, the
corresponding `INVOCATION` message MUST contain an
`INVOCATION.Details.caller|integer` property set to the *Caller*'s session ID.

The following additional properties MAY also be included::

- `INVOCATION.Details.caller_authid|string`
- `INVOCATION.Details.caller_authrole|string`

**Feature Announcement**

Support for this feature MUST be announced by *Callers* (`role := "caller"`), *Callees* (`role := "callee"`) and *Dealers* (`role := "dealer"`) via
Expand Down Expand Up @@ -48,4 +59,4 @@ A *Callee* MAY **request** the disclosure of caller identity via
[64, 927639114088448, {"disclose_caller":true},
"com.maypp.add2"]

With the above registration, the registered procedure is called with the caller's sessionID as part of the call details object.
With the above registration, the registered procedure is called with the caller's sessionID as part of the call details object.
9 changes: 9 additions & 0 deletions rfc/text/advanced/ap_23_pubsub_publisher_identification.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ Note that a *Broker* may deny a *Publisher's* request to disclose its identity:

A *Broker* may also (automatically) disclose the identity of a *Publisher* even without the *Publisher* having explicitly requested to do so when the *Broker* configuration (for the publication topic) is set up to do so.

**Additional Identity Information**

When publisher disclosure is allowed for a particular PUBLISH message, the
corresponding `EVENT` message MAY also contain the following additional
properties in its `Details` dictionary:

- `EVENT.Details.publisher_authid|string`
- `EVENT.Details.publisher_authrole|string`

**Feature Announcement**

Support for this feature MUST be announced by *Publishers* (`role := "publisher"`), *Brokers* (`role := "broker"`) and *Subscribers* (`role := "subscriber"`) via
Expand Down

0 comments on commit 6425844

Please sign in to comment.