You can configure OAuth 2.0 password grant, OAuth 2.0 client certificate grant, and OAuth 2.0 client secret grant authentications to connect to Microsoft Dynamics 365 for Sales deployed online or on-premises.
Before you configure the connection properties, you need to keep the authentication details handy based on the authentication type that you want to use.