@NeerajV-6011, Thank you for reaching out. So to start with the WebApps and get it protected by AAD, let me walk you through some of the details.
When you plan to develop an web application and publish it as WebApps and get users from AAD to access it, in that case, you would have to use OAuth2.0 or SAML as one of the protocols for the authentication and authorization part. Also, you would have to make your application know to AAD, and you do that by creating an app registration. Creating an application registration, makes AAD trust you application. You can find more details on how to perform app registrations here.
Now lets say, you are using OAuth as the protocol in your web application and in that case you would have to implement OAuth protocol in your application by one of the libraries like MSAL (Microsoft Authentication Library) and based on the language you used to code your webapp, you would find a suitable version of the MSAL library for that language. This library takes care of the SSO.
I would like to share some sample applications, and you can go through the links and that would get you an idea as how to perform the App Registrations for those applications. How OAuth helps in authorizing the users and what type of configuration can be made for the web application to work with AAD with SSO.
Add sign-in to Microsoft to an ASP.NET web app: https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-asp-webapp
Hope this helps.
Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.