Iot platform with Go and Mqtt

Using paho mqtt Go client, does it support authorizing users using a database? And to filter out messages should I subscribe to all incoming messages receiving by the broker?