/auth-clients

Primary LanguageTypeScriptMIT LicenseMIT

iTwin.js Authorization clients

Copyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.

iTwin.js is an open source platform for creating, querying, modifying, and displaying Infrastructure Digital Twins.

If you have questions, or wish to contribute to iTwin.js, see our Contributing guide.

About this Repository

This repository contains a few OAuth 2.0 client libraries to assist in authenticating with the iTwin Platform in TypeScript/JavaScript.

There are 3 clients in the repository, each of them corresponding to one of the application types supported by the iTwin Platform. See the authorization documentation for more details on the Authorization workflows supported.

In addition, the OIDC Signin Tool is a test helper package to automate the sign-in workflow to aid in writing integration tests.

There is also an authorization client for command-line developer tools.

Prerequisites

Build Instructions

  1. Clone repository (first time) with git clone or pull updates to the repository (subsequent times) with git pull
  2. Install dependencies: pnpm update or pnpm install
  3. Build source: pnpm build
  4. Run tests: pnpm cover

Extract Documentation

pnpm run docs