Alokai
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

NameRequiredTypeDescription
clientIdRequiredstringClient Id of OAuth Client.
clientSecretRequiredstringClient Secret of OAuth Client.
cookieOptionsOptionalMiddlewareCookieOptionsObject allowing to overwrite options of auth cookies (e.g. vsf-sap-token customer token cookie).
tokenEndpointRequiredstringEndpoint for retrieving and refreshing customer/application tokens (e.g. /oauth/token).
tokenRetryIntervalInSecondsOptionalnumber | falseThe 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.
tokenRevokeEndpointRequiredstringEndpoint for revoking customers tokens (e.g. /oauth/revoke).
uriRequiredstringFull OAuth server uri (e.g. https://<your-sap-api>/authorizationserver/).

Referenced Types

On this page