Using a regular username instead of Extension number

How to configure asterisk 1.6/freepbx 2.7 for username based SIP authentication? I like to give softphone users a username such as “abc1234” and pw instead of their extension number. So, they can register their client to server.