@abgov/adsp-service-sdk
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

adsp-service-sdk

SDK for Alberta Digital Service Platform (ADSP).

Use this library to build Node based platform and tenant services for ADSP.

Getting started

Initialize the SDK for either platform or tenant service.

  import { AdspId, initializePlatform } from '@abgov/adsp-service-sdk';

  const serviceId = AdspId.parse(environment.CLIENT_ID);
  const {
    coreStrategy,
    tenantStrategy,
    ...sdkCapabilities,
  } = await initializePlatform(
    {
      displayName: 'My platform service',
      description: 'Example of a platform service.',
      serviceId,
      accessServiceUrl: new URL(environment.KEYCLOAK_ROOT_URL),
      clientSecret: environment.CLIENT_SECRET,
      directoryUrl: new URL(environment.DIRECTORY_URL),
      configurationSchema,
      events: [],
      roles: [],
      notifications: [],
    },
    { logger }
  );

See ADSP Development Guide for details.

Readme

Keywords

none

Package Sidebar

Install

npm i @abgov/adsp-service-sdk

Weekly Downloads

3

Version

2.1.0

License

Apache-2.0

Unpacked Size

209 kB

Total Files

167

Last publish

Collaborators

  • dustin.nielsen
  • dio.ting.zuge
  • abgov-chris-olsen