You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x
MiddlewareOAuthConfig
Settings for requests sent to authorization server.
export interface MiddlewareOAuthConfig {
clientId: string;
clientSecret: string;
cookieOptions?: MiddlewareCookieOptions;
tokenEndpoint: string;
tokenRetryIntervalInSeconds?: number | false;
tokenRevokeEndpoint: string;
uri: string;
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
clientId | Required | string | Client Id of OAuth Client. |
clientSecret | Required | string | Client Secret of OAuth Client. |
cookieOptions | Optional | MiddlewareCookieOptions | Object allowing to overwrite options of auth cookies (e.g. vsf-sap-token customer token cookie). |
tokenEndpoint | Required | string | Endpoint for retrieving and refreshing customer/application tokens (e.g. /oauth/token). |
tokenRetryIntervalInSeconds | Optional | number | false | The number of seconds to wait before retrying to fetch an application token when the SAPCC authorization server is unavailable. Defaults to 30 seconds. Setting it to false disables the retry mechanism. |
tokenRevokeEndpoint | Required | string | Endpoint for revoking customers tokens (e.g. /oauth/revoke). |
uri | Required | string | Full OAuth server uri (e.g. https://<your-sap-api>/authorizationserver/). |