https://github.com/netsells/nuxt-netsells-sso
https://github.com/netsells/nuxt-netsells-sso
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/netsells/nuxt-netsells-sso
- Owner: netsells
- Created: 2019-05-23T13:33:13.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-03T10:42:03.000Z (over 2 years ago)
- Last Synced: 2025-02-02T18:52:01.230Z (3 months ago)
- Language: JavaScript
- Size: 1.24 MB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nuxt Netsells SSO
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url]
> A module allowing google auth single sign on for internal Netsells projects.
## Why?
Currently for all Netsells internal tooling we would have to repeat the Single Sign On process for every tool. This allows us a centralised way of handling it across all tools, and ensure they all work in the same manner. Simplifies the process of anyone who wishes to build an internal tool.
## Installation
```sh
yarn add @netsells/nuxt-netsells-sso
```## Usage
Add the module to your nuxt config's `modules` array:
```js
module.exports = {
...
modules: [
['@netsells/nuxt-netsells-sso', {
debug: false, // Enable logging
endpoints: {
me: 'api/me', // User lookup endpoint
},
}],
],
...
};
```API requests use the `API_BASE` env value to determine the location of the API to handle the SSO authentication.
MIT © [Netsells](https://www.netsells.co.uk)
[npm-image]: https://badge.fury.io/js/%40netsells%2Fnuxt-sso.svg
[npm-url]: https://npmjs.org/package/@netsells/nuxt-sso
[travis-image]: https://travis-ci.org/netsells/nuxt-sso.svg?branch=master
[travis-url]: https://travis-ci.org/netsells/nuxt-sso
[daviddm-image]: https://david-dm.org/netsells/nuxt-sso.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/netsells/nuxt-sso