import json def main(request, response): response.headers.set(b"Content-Type", b"application/json") response.headers.set(b"Access-Control-Allow-Origin", b"*") # The issuer identifier carries no port, and neither do its endpoints: the # PAC file the tests install routes them back to this server. hostname = request.url_parts.hostname base_url = f"https://{hostname}" return json.dumps({ "issuance_endpoint": f"{base_url}/fedcm/support/delegation-issuance.py", "jwks_uri": f"{base_url}/fedcm/support/delegation-jwks.py", "signing_alg_values_supported": ["EdDSA", "ES256", "RS256"] })