@salte-auth/azure
Version:
A Salte Auth provider for authenticating with Azure AD!
88 lines (69 loc) • 2.6 kB
Markdown
<h2 align="center">
<div>
<a href="https://github.com/salte-auth/azure">
<img height="180px" src="https://raw.githubusercontent.com/salte-auth/logos/main/images/logo.svg?sanitize=true">
<br>
<br>
<img height="50px" src="https://raw.githubusercontent.com/salte-auth/logos/main/images/%40salte-auth/azure.svg?sanitize=true">
</a>
</div>
</h2>
<h3 align="center">
A Salte Auth provider for authenticating with Azure AD!
</h3>
<p align="center">
<strong>
<a href="https://salte-auth.gitbook.io">Docs</a>
•
<a href="https://salte-auth-demo.glitch.me">Demo</a>
</strong>
</p>
<div align="center">
[![NPM Version][npm-version-image]][npm-url]
[![NPM Downloads][npm-downloads-image]][npm-url]
[![CI Build][github-actions-image]][github-actions-url]
[![Coveralls][coveralls-image]][coveralls-url]
[![semantic-release][semantic-release-image]][semantic-release-url]
</div>
```sh
$ npm install @salte-auth/azure
```
```js
import { SalteAuth } from '@salte-auth/salte-auth';
import { Azure } from '@salte-auth/azure';
import { Redirect } from '@salte-auth/redirect';
/*
* Feel free to try out Salte Auth with this configuration!
*
* It should work with the following domains:
* - glitch.com
* - localhost:8081
*/
const auth = new SalteAuth({
providers: [
new Azure({
url: 'https://login.microsoftonline.com/3f6df7ce-5830-4280-ae97-8e4016d1c6d0',
clientID: 'c679f65f-8070-4719-8798-31c6fc256736'
})
],
handlers: [
new Redirect({
default: true
})
]
});
auth.login('azure');
```
[]: https://img.shields.io/npm/v/@salte-auth/azure.svg?style=flat
[]: https://img.shields.io/npm/dm/@salte-auth/azure.svg?style=flat
[]: https://npmjs.org/package/@salte-auth/azure
[]: https://github.com/salte-auth/azure/actions/workflows/ci.yml/badge.svg?branch=main
[]: https://github.com/salte-auth/azure/actions/workflows/ci.yml
[]: https://img.shields.io/coveralls/salte-auth/azure/main.svg
[]: https://coveralls.io/github/salte-auth/azure?branch=main
[]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
[]: https://commitizen.github.io/cz-cli/
[]: https://github.com/semantic-release/semantic-release
[]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg