-
Notifications
You must be signed in to change notification settings - Fork 98
Deprecate nonce parameter #768
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
Conversation
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}} |
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.
nit: typo here, and also add period at the end of the sentence
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.
@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?
| Note: "nonce" to be passed with-in {{IdentityProviderRequestOptions/params}} | |
| Note: "nonce" is to be passed within {{IdentityProviderRequestOptions/params}}. |
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.
addressed
| providers: [{ // sequence<IdentityCredentialRequestOptions> | ||
| configURL: "https://idp.example/manifest.json", // IdentityProviderConfig.configURL | ||
| clientId: "123", // IdentityProviderConfig.clientId | ||
| nonce: "nonce" // IdentityProviderConfig.nonce |
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'd rewrite this as:
params: {
nonce: "nonce"
}So that a reader can tell where they'd put the nonce.
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 as suggested.
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.
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}}. |
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 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.
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.
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 |
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.
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}}. |
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.
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?
|
We got consensus on this in the call. CC @bvandersloot-mozilla but I'll merge this now |
SHA: b8e3ce8 Reason: push, by npm1 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
SHA: b8e3ce8 Reason: push, by pull[bot] Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
The Federated Credential Management (FedCM) API currently allows Identity Providers (IdPs) to specify a
nonceparameter as a top-level field in the provider configuration object. This proposal proposes deprecating this top-level parameter and moving it to theparamsobject, which is the intended location for all IdP-specific parameters.Preview | Diff