Table of Contents

Class Scopes

Namespace
Integrations.Api.Security
Assembly
Integrations.Api.dll

OAuth2 scopes accepted by the service. Each scope maps 1:1 to an authorization policy of the same name.

public static class Scopes
Inheritance
Scopes
Inherited Members

Fields

AddressValidate

Validate and geocode addresses.

public const string AddressValidate = "addresses:validate"

Field Value

string

Admin

Entity configuration and tax-code mappings; also implies every other operation scope (not entity access).

public const string Admin = "integrations:admin"

Field Value

string

All

Every operation scope (not AllEntities); used to register the policies and by the dev token issuer.

public static readonly IReadOnlyList<string> All

Field Value

IReadOnlyList<string>

AllEntities

Grants access to every entity. Without it, callers are limited to the entities in their entity claims.

public const string AllEntities = "entities:all"

Field Value

string

CertificatesRead

List and download exemption and resale certificates.

public const string CertificatesRead = "certs:read"

Field Value

string

CertificatesWrite

Send certificate invites and record resale-certificate requests.

public const string CertificatesWrite = "certs:write"

Field Value

string

FxImport

Import (backfill) published exchange rates.

public const string FxImport = "fx:import"

Field Value

string

FxLock

Lock a daily exchange rate for a committed line.

public const string FxLock = "fx:lock"

Field Value

string

FxRead

Read exchange rates, locks and conversions.

public const string FxRead = "fx:read"

Field Value

string

JobsRun

See scheduled jobs and run one now.

public const string JobsRun = "jobs:run"

Field Value

string

PartiesRead

Read customers and vendors and their sync status.

public const string PartiesRead = "parties:read"

Field Value

string

PartiesWrite

Sync customers and vendors to the tax provider.

public const string PartiesWrite = "parties:write"

Field Value

string

ReportsRead

Sales-tax, jurisdiction, vendor-tax and reconciliation reports.

public const string ReportsRead = "reports:read"

Field Value

string

ReportsResolve

Mark reconciliation issues resolved.

public const string ReportsResolve = "reports:resolve"

Field Value

string

TaxCommit

Commit tax documents (makes them reportable).

public const string TaxCommit = "tax:commit"

Field Value

string

TaxEstimate

Real-time tax estimates.

public const string TaxEstimate = "tax:estimate"

Field Value

string

TaxRead

Read tax documents.

public const string TaxRead = "tax:read"

Field Value

string

TaxWrite

Create, replace, credit and void tax documents.

public const string TaxWrite = "tax:write"

Field Value

string

Methods

AcceptedFor(string)

The scopes that satisfy scope's policy (besides Admin): the scope itself, plus parties:write for parties:read (writers read what they sync) and, until callers move to parties:read, the certs:read scope that used to guard reading a party.

public static IEnumerable<string> AcceptedFor(string scope)

Parameters

scope string

Returns

IEnumerable<string>