diff options
Diffstat (limited to 'testing/web-platform/tests/credential-management/support/fedcm/token.py')
-rw-r--r-- | testing/web-platform/tests/credential-management/support/fedcm/token.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/web-platform/tests/credential-management/support/fedcm/token.py b/testing/web-platform/tests/credential-management/support/fedcm/token.py new file mode 100644 index 0000000000..b914eb2d96 --- /dev/null +++ b/testing/web-platform/tests/credential-management/support/fedcm/token.py @@ -0,0 +1,11 @@ +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") + + return "{\"token\": \"token\"}" |