from typing import Dict


def jwks_fixture(key, headers_fixture) -> Dict:
    """Returns a JSON Web Key Set (JWKS)"""

    key_dict = key.to_dict()
    return {
        "keys": [
            {
                # the JWK used in the tests
                "alg": key_dict["alg"],
                "e": key_dict["e"],
                "kid": headers_fixture["kid"],
                "kty": key_dict["kty"],
                "n": key_dict["n"],
                "use": "sig",
            },
            {
                # additional dummy JWK
                "alg": "RS256",
                "e": "AQAB",
                "kid": "abcdefghijklmnopqrsexample=",
                "kty": "RSA",
                "n": "lsjhglskjhgslkjgh43lj5h34lkjh34lkjht3example",
                "use": "sig",
            },
        ]
    }