It was by assuming that everything in the book was written by Ignatius that it came to be looked upon as his composition.
The belief that everything in the book was written by Ignatius resulted in it being considered his composition.