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
Admin
Entity configuration and tax-code mappings; also implies every other operation scope (not entity access).
public const string Admin = "integrations:admin"
Field Value
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
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
CertificatesRead
List and download exemption and resale certificates.
public const string CertificatesRead = "certs:read"
Field Value
CertificatesWrite
Send certificate invites and record resale-certificate requests.
public const string CertificatesWrite = "certs:write"
Field Value
FxImport
Import (backfill) published exchange rates.
public const string FxImport = "fx:import"
Field Value
FxLock
Lock a daily exchange rate for a committed line.
public const string FxLock = "fx:lock"
Field Value
FxRead
Read exchange rates, locks and conversions.
public const string FxRead = "fx:read"
Field Value
JobsRun
See scheduled jobs and run one now.
public const string JobsRun = "jobs:run"
Field Value
PartiesRead
Read customers and vendors and their sync status.
public const string PartiesRead = "parties:read"
Field Value
PartiesWrite
Sync customers and vendors to the tax provider.
public const string PartiesWrite = "parties:write"
Field Value
ReportsRead
Sales-tax, jurisdiction, vendor-tax and reconciliation reports.
public const string ReportsRead = "reports:read"
Field Value
ReportsResolve
Mark reconciliation issues resolved.
public const string ReportsResolve = "reports:resolve"
Field Value
TaxCommit
Commit tax documents (makes them reportable).
public const string TaxCommit = "tax:commit"
Field Value
TaxEstimate
Real-time tax estimates.
public const string TaxEstimate = "tax:estimate"
Field Value
TaxRead
Read tax documents.
public const string TaxRead = "tax:read"
Field Value
TaxWrite
Create, replace, credit and void tax documents.
public const string TaxWrite = "tax:write"
Field Value
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
scopestring