def METHOD_NAME(cls, pyramid_request, client_id, client_secret):
    encoded = base64.standard_b64encode(
        f"{client_id}:{client_secret}".encode("utf-8")
    )
    creds = encoded.decode("ascii")
    pyramid_request.headers["Authorization"] = f"Basic {creds}"