Skip to content

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

Interface: AuthCredentials

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

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:110

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


apiKey?

optional apiKey: string

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

API key for api-key auth


apiKeyHeaderName?

optional apiKeyHeaderName: string

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

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:104

OAuth client ID


clientSecret?

optional clientSecret: string

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

OAuth client secret (for client-credentials flow)


password?

optional password: string

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

Password/access key for basic auth


scopes?

optional scopes: string[]

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

OAuth scopes to request


username?

optional username: string

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

Username for basic auth

All rights reserved.