tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

two_accounts.py (719B)


      1 import importlib
      2 error_checker = importlib.import_module("fedcm.support.request-params-check")
      3 
      4 def main(request, response):
      5  request_error = error_checker.accountsCheck(request)
      6  if (request_error):
      7    return request_error
      8 
      9  response.headers.set(b"Content-Type", b"application/json")
     10 
     11  return """
     12 {
     13 "accounts": [
     14  {
     15   "id": "jane_doe",
     16   "given_name": "Jane",
     17   "name": "Jane Doe",
     18   "email": "jane_doe@idp.example",
     19   "approved_clients": ["123", "abc"]
     20  },
     21  {
     22   "id": "john_doe",
     23   "given_name": "John",
     24   "name": "John Doe",
     25   "email": "john_doe@idp.example",
     26   "approved_clients": ["123", "456", "789"],
     27   "login_hints": ["john_doe"],
     28   "domain_hints": ["idp.example", "example"]
     29  }
     30  ]
     31 }
     32 """