picture_account.py (604B)
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 "id": "1234", 15 "given_name": "John", 16 "name": "John Doe", 17 "email": "john_doe@idp.example", 18 "picture": "https://localhost/profile/123", 19 "approved_clients": ["123", "456", "789"], 20 "login_hints": ["john_doe"], 21 "domain_hints": ["idp.example", "example"] 22 }] 23 } 24 """