add: auth adaptor
fix: inject manager, adaptor into middleware
add: adapters, tests