added authentication events into StreamConnection.