Skip to content

Commit 35cb362

Browse files
committed
docs: Document RequestingApplication struct
1 parent 6f60fda commit 35cb362

3 files changed

Lines changed: 25 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# [unreleased]
22

3+
## Breaking Changes
4+
5+
### UI Controller API
6+
7+
- Reordered parameters in RequestingApplication, and made app name optional.
8+
39
# [0.2.0] - 2025-02-18
410

511
## Breaking Changes

credentialsd-common/src/model.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,17 @@ impl Transport {
9696
}
9797
}
9898

99+
/// Details about the calling application to be displayed in the UI.
99100
#[derive(Debug, Default, Clone, Serialize, Deserialize, Type)]
100101
pub struct RequestingApplication {
102+
/// The App ID (if called on the portal interface) or path (if called on the
103+
/// internal interface).
101104
pub path_or_app_id: String,
105+
106+
/// The name of the application.
102107
pub name: Optional<String>,
108+
109+
/// The PID of the applicatoin
103110
pub pid: u32,
104111
}
105112

doc/api.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,9 @@ This method should be called when a new credential request begins.
881881
ViewRequest: [a{sv}] {
882882
id: u,
883883
operation: Operation,
884+
rp_id: s,
885+
requesting_app: RequestingApplication,
886+
window_handle: s, // Optional
884887
}
885888
```
886889

@@ -891,6 +894,15 @@ Operation[s] [
891894
]
892895
```
893896

897+
```
898+
RequestingApplication {
899+
name: s, // Optional
900+
path_or_app_id: s,
901+
pid: u32,
902+
903+
}
904+
```
905+
894906
### Response
895907

896908
None.

0 commit comments

Comments
 (0)