authentication middleware for ee-soa