Skip to content
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

Merged
merged 3 commits into from
Aug 30, 2022
Merged

Conversation

johannhof
Copy link
Member

@johannhof johannhof commented Aug 4, 2022

Companion change to w3c-fedid/FedCM#236


Preview | Diff

@johannhof johannhof requested review from nsatragno and npm1 August 4, 2022 13:35
Copy link
Member

@nsatragno nsatragno left a 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"
Copy link
Member

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?

Copy link
Member Author

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"
Copy link
Contributor

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.

Copy link
Member Author

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.

@johannhof johannhof requested review from npm1 and nsatragno August 29, 2022 21:35
Copy link
Member

@nsatragno nsatragno left a 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
Copy link
Contributor

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.

Copy link
Member Author

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..

Copy link
Member Author

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!

Copy link
Member

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.

index.bs Outdated Show resolved Hide resolved
@johannhof johannhof merged commit 05f4402 into w3c:main Aug 30, 2022
@johannhof johannhof deleted the fedcm-pp branch August 30, 2022 09:45
github-actions bot added a commit that referenced this pull request Aug 30, 2022
SHA: 05f4402
Reason: push, by @johannhof

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants