Skip to content

Conversation

@cbiesinger
Copy link
Contributor

Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it

Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.

Description

This adds the FedCM webdriver commands that are specified in:
https://fedidcg.github.io/FedCM/#automation

Currently implemented in Chromium, but Firefox is interested as well:
w3c-fedid/FedCM#395 (comment)
w3c-fedid/FedCM#465 (comment)

Motivation and Context

This lets identity providers and relying parties use Selenium's Java API to control
the FedCM browser dialog to test that their website works correctly when
using the FedCM API.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@titusfortner
Copy link
Member

Would you mind creating an issue for us to track this? We'll need to implement it in all the bindings, not just Java. Thanks.

@cbiesinger
Copy link
Contributor Author

Would you mind creating an issue for us to track this? We'll need to implement it in all the bindings, not just Java. Thanks.

Oh I wasn't expecting anyone to look at this yet, I have it marked as draft. But thanks, I filed #12088

I am not sure if you are saying that the pull request needs to do it in all bindings?

@titusfortner
Copy link
Member

I watch all the things, lol.
No, we'll have multiple PRs for it. We just need to track it for now. Thanks!

// specific language governing permissions and limitations
// under the License.

package org.openqa.selenium.chromium;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is based on "Federated Credential Management API", the package name shouldn't be chromium, but probably something parallel to the virtualauthenticator. Perhaps org.openqa.selenium.federatedcredentialmanagement?

* Used by classes to indicate that they can interact with FedCM dialogs.
*/
@Beta
public interface HasFedCm {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider a more verbose name so someone not familiar with the spec can understand what this is.

As specified in:
https://fedidcg.github.io/FedCM/#automation

Currently implemented in Chromium.
@cbiesinger
Copy link
Contributor Author

closing this and reopening a new PR in hopes of fixing the CLA check

@cbiesinger cbiesinger closed this May 25, 2023
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