tokencredentials power bi embedded
var credential = new ClientCredential(ClientId, ClientSecret);
// Authenticate using created credentials
string AuthorityUrl = "https://login.microsoftonline.com/"+ADdomain+"/oauth2/v2.0/authorize";
var authenticationContext = new AuthenticationContext(AuthorityUrl);
var authenticationResult = await authenticationContext.AcquireTokenAsync(ResourceUrl, credential);