Provides the flow to authenticate a user locally.