Fixed endpoint handling in authN plugins