Adding authentication layer

- Having a state variable in the connection struct which tracks the
authentication state of a connection

Reviewed by:
Testing:
Tickets:
Backport: