Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 877 Bytes

File metadata and controls

35 lines (29 loc) · 877 Bytes
description Automatically generated file. DO NOT MODIFY
const options = {
	authProvider,
};

const client = Client.init(options);

const customAuthenticationExtension = {
  '@odata.type': '#microsoft.graph.onAttributeCollectionStartCustomExtension',
  displayName: 'attributeCollectionStartName',
  description: 'example description',
  authenticationConfiguration: {
    '@odata.type': '#microsoft.graph.azureAdTokenAuthentication',
    resourceId: 'api://contoso.com/fb96de85-2abe-4b02-b45f-64ba122c509e'
  },
  endpointConfiguration: {
    '@odata.type': '#microsoft.graph.httpRequestEndpoint',
    targetUrl: 'https://contoso.com'
  },
  clientConfiguration: {
    timeoutInMilliseconds: 2000,
    maximumRetries: 1
  }
};

await client.api('/identity/customAuthenticationExtensions')
	.version('beta')
	.post(customAuthenticationExtension);