def key_rollover(environ, start_response, _):
    # expects a post containing the necessary information
    _txt = get_post(environ)
    _jwks = json.loads(_txt)
    logger.info("Key rollover to")
    OAS.do_key_rollover(_jwks, "key_%d_%%d" % int(time.time()))
    # Dump to file
    f = open(JWKS_FILE_NAME, "w")
    f.write(json.dumps(OAS.keyjar.export_jwks()))
    f.close()
    resp = Response("OK")
    return resp(environ, start_response)
dataset/ETHPy150Open rohe/pyoidc/oidc_example/op2/server.py/key_rollover/original