Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions host/request-context@1.0.0.wit
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,11 @@ interface host {
/// authenticated strongly enough to own interactive requests. Consumers
/// must fail closed for owner-scoped prompts when this is `none`.
connection-owner: func(connection: borrow<tcp-stream>) -> result<option<string>, error-code>;

/// Return the principal authenticated for an accepted local connection.
///
/// `none` means the stream is outbound, remotely accepted, or did not
/// complete principal authentication. A bridge must not substitute a
/// payload-supplied principal when this is `none`.
connection-principal: func(connection: borrow<tcp-stream>) -> result<option<string>, error-code>;
}
Loading