title: Google.Apis.Requests.RequestError Request had insufficient authentication scopes. [403] in GCP for Firebase Management Api
body: <p>i am try to create a new project using resourcemanager.projects.create But got an error like :(</p>
  
  <pre><code>Google.Apis.Requests.RequestError
  Request had insufficient authentication scopes. [403]
  Errors [
      Message[Request had insufficient authentication scopes.] Location[ - ] Reason[forbidden] Domain[global]
  ]
  </code></pre>
  
  <p>Can anyone please tell me What i am doing wrong.
  Here is my code : </p>
  
  <pre><code>private async void GoogleClick(object sender, RoutedEventArgs e)
  {
      try
      {
          var cr = new PromptCodeReceiver();
  
          var result = await GoogleWebAuthorizationBroker.AuthorizeAsync(
          new ClientSecrets { ClientId = GoogleClientId,ClientSecret = GoogleSecretKey },
              new[] { "email", "profile" },
                  "user",
                   CancellationToken.None);
  
          if (result.Token.IsExpired(SystemClock.Default))
          {
              await result.RefreshTokenAsync(CancellationToken.None);
          }
  
          CloudResourceManagerService cloudResourceManagerService = new CloudResourceManagerService(new BaseClientService.Initializer
          {
              HttpClientInitializer = GetCredential(result.Token.AccessToken, FirebaseAuthType.Google),
              ApplicationName = "Kapiling",
              //ApiKey = "apikey"
          });
  
          // TODO: Assign values to desired properties of `requestBody`:
          Data.Project requestBody = new Data.Project();
          requestBody.Name = "TESTING";
          requestBody.ProjectNumber = 415104041262;
          requestBody.ProjectId = "tokyo-rain-123";
          requestBody.CreateTime = "2014-10-02T15:01:23.045123456Z";
  
          ProjectsResource.CreateRequest request = cloudResourceManagerService.Projects.Create(requestBody);
  
  }
  </code></pre>
  
  <p>I am try to access using public static GoogleCredential FromAccessToken(string accessToken, IAccessMethod accessMethod = null); method </p>
  
  <pre><code>public static GoogleCredential GetCredential(string accessToken, FirebaseAuthType authType)
      {
          GoogleCredential credential = GoogleCredential.FromAccessToken(accessToken, null);
          return credential;
      }
  </code></pre>
  
  <p><strong>Thanks for everyone who help me i Solved this issues.
  Thanks again. :)</strong></p>