Lots of documentation...
https://docs.moodle.org/29/en/Authentication
You need to start with managing authentication and then look at the documents for the specific forms of authentication that you want to set up. Then come back here when you get stuck!