Skip to content

Scope validation inconsistent with documentation #1214

@chklauser

Description

@chklauser

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions