blob: 52fb20184bc081186e7f9aaab7561dc87c8906bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import importlib
error_checker = importlib.import_module("credential-management.support.fedcm.request-params-check")
def main(request, response):
request_error = error_checker.tokenCheck(request)
if (request_error):
return request_error
response.headers.set(b"Content-Type", b"application/json")
account_id = request.POST.get(b"account_id")
return "{\"token\": \"account_id=" + account_id.decode("utf-8") + "\"}"
|