1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! Client registration over HTTP: RFC 7591 dynamic registration, and fetching
//! a Client ID Metadata Document the client published.
//!
//! Two adapters for one port, because the two mechanisms are different
//! requests. Dynamic registration is a POST the client authors and the server
//! answers, and the response is a credential only the client and that server
//! know. A metadata document is a GET of something the client published and
//! the server reads, and it establishes no secret at all.
//!
//! Both implement
//! [`ClientRegistrar`](crate::application::oauth::registration::ClientRegistrar).
//! Which one a client actually uses is decided by
//! [`plan_registration`](crate::application::oauth::registration::plan_registration),
//! in `application/` — not here. An adapter that chose for itself would make
//! the revision's preference into a property of whichever adapter was wired up.