chromium/third_party/blink/web_tests/external/wpt/fedcm/support/accounts_no_approved_clients.py

import importlib
error_checker = importlib.import_module("fedcm.support.request-params-check")

def main(request, response):
  request_error = error_checker.accountsCheck(request)
  if (request_error):
    return request_error

  response.headers.set(b"Content-Type", b"application/json")

  return """
{
 "accounts": [{
   "id": "1234",
   "given_name": "John",
   "name": "John Doe",
   "email": "[email protected]",
   "picture": "https://idp.example/profile/123",
   "login_hints": ["john_doe"],
   "domain_hints": ["idp.example", "example"]
  },
  {
   "id": "jane_doe",
   "given_name": "Jane",
   "name": "Jane Doe",
   "email": "[email protected]",
   "picture": "https://idp.example/profile/5678"
  }]
}
"""