w3c-ccg / credential-handler-api

WORK ITEM: Repository for the Credential Handler specification of the Credentials Community Group
https://w3c-ccg.github.io/credential-handler-api
Other
21 stars 3 forks source link

Use of this API from a non-browser #11

Open lrosenthol opened 4 years ago

lrosenthol commented 4 years ago

As this is an HTTP-based API, I would expect this to work for any arbitrary clients and not be restricted to browsers (and service workers) only.

dlongley commented 4 years ago

As this is an HTTP-based API, I would expect this to work for any arbitrary clients and not be restricted to browsers (and service workers) only.

So far, implementations have only supported a JavaScript API. When using a browser, the API allows requests for credentials/requests to store credentials to be passed via a JS API through a "mediator" (the browser) to a Credential Handler provided by another website. The Credential Handler typically receives these requests via JS events and responds via JS.

I would expect this to work for any arbitrary clients and not be restricted to browsers (and service workers) only.

Yes, there is space for a Credential Handler to send its response to the mediator in another way (perhaps involving HTTP or Web RTC), thereby enabling native (non-browser) Credential Handlers. This has yet to be spec'd out as there has not been a native Credential Handler implementer that has expressed interest in doing an experimental implementation yet.

We'd love to see a native Credential Handler implementer come forward to discuss possible designs that might work for them and offer to do an experimental implementation. In order to integrate a native Credential Handler (CH) with the browser polyfill, concepts have been floated involving running an ice/stun server on the polyfill mediator site and using WebRTC to communicate responses from the native CH to the mediator so that they can be forwarded onto the relying party website whilst maintaining consistent UX.