Interface: SAPAuthConfig
Defined in: src/auth/auth-types.ts:130
SAP system authentication configuration.
Remarks
Contains all fields needed to authenticate against any SAP system
variant (OnPrem, BTP, Cloud SAML, Office365, API, Certificate).
Optional fields use | undefined due to exactOptionalPropertyTypes.
Example
const config: SAPAuthConfig = {
url: 'https://my-sap.example.com',
username: 'admin',
password: 'secret',
client: '100',
};
Properties
certificateKeyPath?
readonlyoptionalcertificateKeyPath:string
Defined in: src/auth/auth-types.ts:148
Path to client certificate key.
certificatePath?
readonlyoptionalcertificatePath:string
Defined in: src/auth/auth-types.ts:146
Path to client certificate for certificate-based auth.
client?
readonlyoptionalclient:string
Defined in: src/auth/auth-types.ts:138
SAP client number (optional, OnPrem only).
language?
readonlyoptionallanguage:string
Defined in: src/auth/auth-types.ts:140
SAP language code (optional, e.g., 'EN').
loginEndpoint?
readonlyoptionalloginEndpoint:string
Defined in: src/auth/auth-types.ts:144
Custom login endpoint path for API-based auth.
password
readonlypassword:string
Defined in: src/auth/auth-types.ts:136
Password for authentication.
staySignedIn?
readonlyoptionalstaySignedIn:boolean
Defined in: src/auth/auth-types.ts:152
Whether to click "Stay signed in" on Office365.
storageStatePath?
readonlyoptionalstorageStatePath:string
Defined in: src/auth/auth-types.ts:156
Path to save storage state for session reuse.
strategy?
readonlyoptionalstrategy:string
Defined in: src/auth/auth-types.ts:142
Auth strategy name override (auto-detected if not provided).
subdomain?
readonlyoptionalsubdomain:string
Defined in: src/auth/auth-types.ts:150
BTP subdomain for multi-tenant auth.
timeout?
readonlyoptionaltimeout:number
Defined in: src/auth/auth-types.ts:154
Auth timeout in ms (default from PramanConfig).
url
readonlyurl:string
Defined in: src/auth/auth-types.ts:132
SAP system URL (e.g., 'https://my-sap.example.com').
username
readonlyusername:string
Defined in: src/auth/auth-types.ts:134
Username for authentication.