Skip to content

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

Interface: AuthConfig ​

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

Combined authentication configuration. B2CInstance uses this to determine which auth strategy to use for each operation type.

Properties ​

apiKey? ​

optional apiKey: ApiKeyAuthConfig

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

API key for MRT/external services


authMethods? ​

optional authMethods: AuthMethod[]

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

Allowed authentication methods in priority order. If not set, defaults to all methods: ['client-credentials', 'implicit', 'basic', 'api-key']


basic? ​

optional basic: BasicAuthConfig

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

Basic auth for WebDAV (username/access-key)


oauth? ​

optional oauth: OAuthAuthConfig

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

OAuth credentials for OCAPI/platform APIs

Released under the Apache-2.0 License.