Developer Preview — This project is in active development. APIs may change. Provide feedback
Skip to content

@salesforce/b2c-tooling-sdk / auth / AuthCredentials

Interface: AuthCredentials

Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:113

Configuration for resolving an auth strategy. Combines all possible credential types.

Properties

accountManagerHost?

optional accountManagerHost: string

Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:121

Account Manager host (defaults to account.demandware.com)


apiKey?

optional apiKey: string

Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:127

API key for api-key auth


apiKeyHeaderName?

optional apiKeyHeaderName: string

Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:129

Header name for API key (defaults to Authorization with Bearer prefix)


clientId?

optional clientId: string

Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:115

OAuth client ID


clientSecret?

optional clientSecret: string

Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:117

OAuth client secret (for client-credentials flow)


password?

optional password: string

Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:125

Password/access key for basic auth


scopes?

optional scopes: string[]

Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:119

OAuth scopes to request


username?

optional username: string

Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:123

Username for basic auth

Released under the Apache-2.0 License.