https://valerasnarbutas.github.io/posts/sharingiscaring-create-ad-app-connect-sharepoint-online/
SharingIsCaring. Create AD app and connect to SharePoint Online - M365 Dev Insights