I'm trying to connect to Graph API and get user access token.

My problem is that I don't know how to connect to Graph API with credentials silently (without browser).

I currently use `MSLogin()` for get access token but it open a browser where you can authorize an AzureAD app to get some access to your account. A library in Java is litteraly what I want in c# <https://github.com/Litarvan/OpenAuth>

I need something like: `MSGraph.ConnectAsync(email, pass).getAccessToken();`

Here my current code (Through a browser)

```
private const string ClientId = "520f6e8e-xxxxxxxxxxxxxxxxxxxx";
private string[] scopes = { "https://graph.microsoft.com/user.read" };

private static AuthenticationResult authResult;
public static IPublicClientApplication PublicClientApp;

private async Task<AuthenticationResult> MSLogin()
{
    PublicClientApp = PublicClientApplicationBuilder.Create(ClientId).WithRedirectUri("msal520f6e8e-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx://auth").Build();
    authResult = await PublicClientApp.AcquireTokenInteractive(scopes).ExecuteAsync();
    return authResult;
}

```