Skip to content

Commit 5dee10a

Browse files
Add support for publickey-credentials-create permission policy (#209)
1 parent 976f91b commit 5dee10a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

index.bs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,16 @@ spec:css-syntax-3;
11391139
1. Let |sameOriginWithAncestors| be `true` if the [=current settings object=] is [=same-origin
11401140
with its ancestors=], and `false` otherwise.
11411141

1142+
1. If |options|[{{CredentialCreationOptions/publicKey}}] [=map/exists=] and
1143+
if |settings|' [=relevant global object=]'s [=associated Document=] is **not**
1144+
[=allowed to use=] the [=publickey-credentials-create-feature|publickey-credentials-create=]
1145+
[=policy-controlled feature=] return [=a promise rejected with=] a "{{NotAllowedError}}"
1146+
{{DOMException}}.
1147+
1148+
Note: <a const>`password`</a> and <a const>`federated`</a>
1149+
[=credential type registry/credential types=] are not presently treated as
1150+
[=policy-controlled features=], although this may change in the future.
1151+
11421152
1. Let |interfaces| be the [=set=] of |options|' <a>relevant credential interface objects</a>.
11431153

11441154
1. Return [=a promise rejected with=] `NotSupportedError` if any of the following statements

0 commit comments

Comments
 (0)