-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add permissions policy check for FedCM #204
Conversation
Companion change to w3c-fedid/FedCM#236
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with one optional comment.
index.bs
Outdated
@@ -947,6 +950,12 @@ spec:css-syntax-3; | |||
1. Let |sameOriginWithAncestors| be `true` if |settings| is [=same-origin with its | |||
ancestors=], and `false` otherwise. | |||
|
|||
1. If |options|[{{CredentialRequestOptions/identity}}] [=map/exists=] then | |||
if |settings|' [=relevant global object=]'s [=associated Document=] is **not** | |||
[=allowed to use=] the "fedcm" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we link the "fedcm" feature policy to a definition on the fedcm spec?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so, I can give it a shot.
index.bs
Outdated
@@ -947,6 +950,12 @@ spec:css-syntax-3; | |||
1. Let |sameOriginWithAncestors| be `true` if |settings| is [=same-origin with its | |||
ancestors=], and `false` otherwise. | |||
|
|||
1. If |options|[{{CredentialRequestOptions/identity}}] [=map/exists=] then | |||
if |settings|' [=relevant global object=]'s [=associated Document=] is **not** | |||
[=allowed to use=] the "fedcm" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per my comment on the other PR, let's rename the value to something different from fedcm
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we've settled on a new name on the other PR, I'll update this one as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, happy to merge if @npm1 is happy with it.
type: interface | ||
text: IdentityCredential; url: identitycredential | ||
type: dict-member |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we should export these from FedCM so they can automagically be used here... but this is fine for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm curious why they don't get picked up, I tried exporting the PP name. The spec works for now, but I'll ask someone wiser than me what we're doing wrong here..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talked to wise sage @tabatkins who will add FedCM to the spec database for us(in a grand ceremony, I expect). That should fix this.
Thank you, Tab!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added now, give the database an hour or so for the next run to pick up the definitions.
SHA: 05f4402 Reason: push, by @johannhof Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Companion change to w3c-fedid/FedCM#236
Preview | Diff