Skip to content

Conversation

@marcoscaceres
Copy link
Member

@marcoscaceres marcoscaceres commented Aug 23, 2024

Closes #256

The following tasks have been completed:

  • Modified Web platform tests (link to pull request)

Implementation commitment:


Preview | Diff

</blockquote>
</div>

Additionally, a specification can add its own set of restriction around what mediations are allowed to be passed into the API.
Copy link
Member Author

Choose a reason for hiding this comment

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

this should probably be more explicit about the internal methods.

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.

I don't know how I missed this -- sorry.

I think we don't actually need to do this and have commented on the issue, but left some comments in case we still want to pursue it.

1. If |interfaces| is [=set/empty=], then return[=a promise rejected with=]
a "{{NotSupportedError}}" {{DOMException}}.

1. If |options|.{{CredentialRequestOptions/mediation}} was not passed,
Copy link
Member

Choose a reason for hiding this comment

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

nit: I believe

Suggested change
1. If |options|.{{CredentialRequestOptions/mediation}} was not passed,
1. If |options|.{{CredentialRequestOptions/mediation}} is `null` or `undefined`,

might be more accurate.


1. Let |interfaces| be the [=set=] of |options|' <a>relevant credential interface objects</a>.

1. If |options|.{{CredentialRequestOptions/mediation}} was not passed,
Copy link
Member

Choose a reason for hiding this comment

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

(same)


Credential interfaces can define a <dfn for="Credential" export>default get mediation</dfn> and
<dfn for="Credential" export>default create mediation</dfn> as an {{CredentialMediationRequirement}} enum value.
Together, they establish the default [[#mediation-requirements]] for when none are supplied by the developer.
Copy link
Member

Choose a reason for hiding this comment

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

What happens when two credential types define two different mediation types?

Copy link
Member Author

Choose a reason for hiding this comment

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

each spec defines its own, so they won't conflict. It will just be, like X defaults to "optional" and Y defaults to "required".

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.

Should mediation be defaulted at all?

3 participants