Hi, Usama. I hope this message finds you well.
You can refer to the official documentation for that. Running from source means you'll want to generta sample config.
From there just read the generated file. There's comments everywhere (which I personally love). One of them is about authentication.
Most importantly, you'll want to define your requirements for that feature to understand whether the default suffices or if you'll want the just as well documented Advanced Authentication plugin.
Hth,
Luiz
PS when sending messages to this list, please refrain from sending multiple emails abou the same topic; there are a great number of people you're teaching out to, just be mindful of that.