swift keystone middleware