sendgrid-csharp icon indicating copy to clipboard operation
sendgrid-csharp copied to clipboard

Scope validation inconsistent with documentation

Open chklauser opened this issue 1 year ago • 0 comments

I expect the library to correctly validate the documented scopes. For instance, the scope mail_settings.bcc.read is unknown to the SendGridPermissionsBuilder and thus gets rejected.

We are using version 9.29.3 of the SendGrid NuGet.

System.InvalidOperationException: The provided scope 'mail_settings.spam_check.read' is not valid. See the API permissions docs for a list of valid scopes.
   at SendGrid.Permissions.SendGridPermissionsBuilder.Include(String[] scopes)

chklauser avatar Sep 23 '24 14:09 chklauser