@salte-auth/wso2
Version:
A Salte Auth provider for authenticating with WSO2!
81 lines (62 loc) • 2.36 kB
Markdown
<h2 align="center">
<div>
<a href="https://github.com/salte-auth/wso2">
<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/wso2.svg?sanitize=true">
</a>
</div>
</h2>
<h3 align="center">
A Salte Auth provider for authenticating with WSO2!
</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/wso2
```
```js
import { SalteAuth } from '@salte-auth/salte-auth';
import { WSO2 } from '@salte-auth/wso2';
import { Redirect } from '@salte-auth/redirect';
const auth = new SalteAuth({
providers: [
new WSO2({
url: 'https://wso2.salte.io',
clientID: '5h3_E8sO839B9DZBkJIOz9RVziQa'
})
],
handlers: [
new Redirect({
default: true
})
]
});
auth.login('wso2');
```
[]: https://img.shields.io/npm/v/@salte-auth/wso2.svg?style=flat
[]: https://img.shields.io/npm/dm/@salte-auth/wso2.svg?style=flat
[]: https://npmjs.org/package/@salte-auth/wso2
[]: https://github.com/salte-auth/wso2/actions/workflows/ci.yml/badge.svg?branch=main
[]: https://github.com/salte-auth/wso2/actions/workflows/ci.yml
[]: https://img.shields.io/coveralls/salte-auth/wso2/main.svg
[]: https://coveralls.io/github/salte-auth/wso2?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