open-index/open-npm huggingface dataset:
npm package: @golemio/azure-ad-auth
Description: Golemio Azure AD library
Author: Operator ICT, a.s.
Latest version: 1.0.0-dev.1031844038

<div align="center">
<p>
    <a href="https://operatorict.cz">
        <img src="https://gitlab.com/operator-ict/golemio/code/modules/core/-/raw/development/.assets/oict_logo.png" alt="oict" width="100px" height="100px" />
    </a>
    <a href="https://golemio.cz">
        <img src="https://gitlab.com/operator-ict/golemio/code/modules/core/-/raw/development/.assets/golemio_logo.png" alt="golemio" width="100px" height="100px" />
    </a>
</p>

<h1>@golemio/azure-ad-auth</h1>

<p>
    <a href="https://gitlab.com/operator-ict/golemio/code/azure-ad-auth/commits/master">
        <img src="https://gitlab.com/operator-ict/golemio/code/azure-ad-auth/badges/master/pipeline.svg" alt="pipeline">
    </a>
    <a href="https://gitlab.com/operator-ict/golemio/code/azure-ad-auth/commits/master">
        <img src="https://gitlab.com/operator-ict/golemio/code/azure-ad-auth/badges/master/coverage.svg" alt="coverage">
    </a>
    <a href="./LICENSE">
        <img src="https://img.shields.io/npm/l/@golemio/azure-ad-auth" alt="license">
    </a>
</p>

<p>
    <a href="#installation">Installation</a> · <a href="./docs">Documentation</a>
</p>
</div>

This module contains azure active directory authentication logics and is intended for use with Golemio services. It provides azure active directory auth

## Prerequisites

- node.js (https://nodejs.org)
- TypeScript (https://www.typescriptlang.org/)

## Installation

Install all npm modules:

```bash
npm install
```

## Compilation of typescript code

To compile typescript code into js one-time

```bash
npm run build
```

or run this, to watch all changes

```bash
npm run build-watch
```

from the application's root directory.

## Usage

The APIs may be unstable. Therefore, we recommend to install this module as an exact version.

```bash
# Latest version
npm install --save --exact @golemio/azure-ad-auth@latest

# Development version
npm install --save --exact @golemio/azure-ad-auth@dev
```

Create tenant whitelist config:

```bash
cp config/tenant-whitelist.default.json config/tenant-whitelist.json
```

Set environment variables

```bash
export AZURE_CLOUD_INSTANCE="https://login.microsoftonline.com"
export AZURE_TENANT_ID="..."
export AZURE_CLIENT_ID="..."
export AZURE_CLIENT_SECRET="..."
export REDIRECT_URL="..."
export BASE_URL="..."
```

Then import module, e.g.

```bash
import { authRouter, singleTenantRouter, multiTenantRouter } from "@golemio/azure-ad-auth";
```

### PoC

- Source code of sample application can be found in `example` folder, please see [README.md](./example/README.md)

## Contribution guidelines

Please read CONTRIBUTING.md.

## Troubleshooting

Contact vyvoj@operatorict.cz
npm package: @golemio/vehicle-positions
Description: Golemio Vehicle Positions Module
Author: Operator ICT, a.s.
Latest version: 1.0.4
Deprecated: This module has been merged with the PID module. Please refer here https://gitlab.com/operator-ict/golemio/code/modules/pid

# @golemio/vehicle-positions

:warning: **This module is deprecated**

> This module has been merged with the PID module. Please refer [here](https://gitlab.com/operator-ict/golemio/code/modules/pid).

Vehicle Positions module of the Golemio data platform

Developed by http://operatorict.cz

## TODO write this README