What should password field be?

Once the user is created by my external site, how does that user then get added to the discourse database? How does a key get created for that user, so they can post things to the site?