@@ -56,19 +56,19 @@ scope.
56
56
The user will be able to opt into limiting which crates the token can act on by
57
57
defining a crates scope.
58
58
59
- The crates scope can be left empty to allow the token to act on all the crates
60
- owned by the user, or it can contain the comma-separated list of crate names
61
- the token can interact with. Crate names can contain ` * ` to match zero or more
62
- characters.
59
+ The crates scope can contain a list of crate name patterns the token can
60
+ interact with. Crate name patterns can either be regular crate names or they
61
+ can end with a ` * ` character to match zero or more characters.
63
62
64
- For example, a crates scope of ` lazy_static,serde* ` allows the token to act on
65
- the ` lazy_static ` crate or any present or future crates starting with ` serde `
66
- (including ` serde ` itself), if the user is an owner of those crates.
63
+ For example, a crate name pattern of ` lazy_static ` will only make the token
64
+ apply to the corresponding crate, while ` serde* ` allows the token to act on
65
+ any present or future crates starting with ` serde ` (including ` serde ` itself),
66
+ but only if the user is an owner of those crates.
67
67
68
68
The crates scope will allow access to all present and future crates matching
69
69
it. When an endpoint that doesn't interact with crates is called by a token
70
70
with a crates scope, the crates scope will be ignored and the call will be
71
- authorized.
71
+ authorized, unless limited by an endpoint scope (see above) .
72
72
73
73
Tokens created before the implementation of this RFC will default to an empty
74
74
crate scope filter (equivalent to no restrictions).
0 commit comments