Skip to content

Conversation

@pottis
Copy link
Contributor

@pottis pottis commented Aug 1, 2025

The Federated Credential Management (FedCM) API currently allows Identity Providers (IdPs) to specify a nonce parameter as a top-level field in the provider configuration object. This proposal proposes deprecating this top-level parameter and moving it to the params object, which is the intended location for all IdP-specific parameters.


Preview | Diff

spec/index.bs Outdated
hint. If provided, the user agent will not show accounts which do not match the domain hint
value.

Note: "nonce" to be passed with-in {{IdentityProviderRequestOptions/params}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: typo here, and also add period at the end of the sentence

Copy link
Contributor

@TallTed TallTed Aug 1, 2025

Choose a reason for hiding this comment

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

@npm1 — What's the typo you see? Can you make a suggestion of your edit? Or confirm that I see the same thing you did?

Suggested change
Note: "nonce" to be passed with-in {{IdentityProviderRequestOptions/params}}
Note: "nonce" is to be passed within {{IdentityProviderRequestOptions/params}}.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed

providers: [{ // sequence<IdentityCredentialRequestOptions>
configURL: "https://idp.example/manifest.json", // IdentityProviderConfig.configURL
clientId: "123", // IdentityProviderConfig.clientId
nonce: "nonce" // IdentityProviderConfig.nonce
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd rewrite this as:

params: {
  nonce: "nonce"
}

So that a reader can tell where they'd put the nonce.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added as suggested.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Well actually I thought we discussed intentionally not putting nonce here since it is now not something the browser needs to handle. We do have a note about it later on. I would reject this suggestion, eg remove this.

value.

Note: "nonce" to be passed with-in {{IdentityProviderRequestOptions/params}}
Note: "nonce" is to be passed within {{IdentityProviderRequestOptions/params}}.
Copy link
Contributor

Choose a reason for hiding this comment

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

I do not see myself nor @npm1 credited/blamed for this change, which was made based on our review comments. I think neither the "commit suggestion" nor "add to batch" buttons were used.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah yes that's fair @TallTed. I think sometimes it is easier to just make the changes locally when addressing multiple comments, so the 'add to batch' button is not used. But you have done a lot of reviews to help improve FedCM, so perhaps we can populate https://w3c-fedid.github.io/FedCM/#acknowledgements and include you there?

providers: [{ // sequence<IdentityCredentialRequestOptions>
configURL: "https://idp.example/manifest.json", // IdentityProviderConfig.configURL
clientId: "123", // IdentityProviderConfig.clientId
nonce: "nonce" // IdentityProviderConfig.nonce
Copy link
Collaborator

Choose a reason for hiding this comment

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

Well actually I thought we discussed intentionally not putting nonce here since it is now not something the browser needs to handle. We do have a note about it later on. I would reject this suggestion, eg remove this.

value.

Note: "nonce" to be passed with-in {{IdentityProviderRequestOptions/params}}
Note: "nonce" is to be passed within {{IdentityProviderRequestOptions/params}}.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah yes that's fair @TallTed. I think sometimes it is easier to just make the changes locally when addressing multiple comments, so the 'add to batch' button is not used. But you have done a lot of reviews to help improve FedCM, so perhaps we can populate https://w3c-fedid.github.io/FedCM/#acknowledgements and include you there?

@npm1
Copy link
Collaborator

npm1 commented Aug 1, 2025

We got consensus on this in the call. CC @bvandersloot-mozilla but I'll merge this now

@npm1 npm1 merged commit b8e3ce8 into w3c-fedid:main Aug 1, 2025
2 checks passed
github-actions bot added a commit that referenced this pull request Aug 1, 2025
SHA: b8e3ce8
Reason: push, by npm1

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to mattdanielbrown/WebID that referenced this pull request Aug 1, 2025
SHA: b8e3ce8
Reason: push, by pull[bot]

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