Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@osjs/sqlite-auth

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@osjs/sqlite-auth

OS.js v3 sqlite authentication provider

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

OS.js Logo

OS.js is an open-source desktop implementation for your browser with a fully-fledged window manager, Application APIs, GUI toolkits and filesystem abstraction.

Community Donate Donate Support

OS.js v3 Sqlite Auth Provider

This is the Sqlite Auth Provider for OS.js v3

Usage

IT IS HIGHLY RECOMMENDED THAT YOU USE https://github.com/os-js/osjs-database-auth INSTEAD

Server

In your server bootstrap script (src/server/index.js) modify the provider registration:

const sqliteAuth = require('@osjs/sqlite-auth');

core.register(AuthServiceProvider, {
  args: {
    adapter: sqliteAuth.adapter,
    config: {
      // Custom Database path
      //database: '/data/osjs.sqlite',
    }
  }
});

CLI

To get CLI commands to manage users, you'll have to modify your CLI bootstrap script (src/cli/index.js):

const sqliteAuth = require('@osjs/sqlite-auth');

const sqliteCli = sqliteAuth.cli({
  // Custom Database path
  //database: '/data/osjs.sqlite',
});

module.exports = [sqliteCli];

You can no manage users with ex. npx osjs-cli <task>

Available tasks:

  • user:list - Lists users
  • user:add --username=STR - Adds user
  • user:pwd --username=STR - Changes user password
  • user:remove --username=STR - Removes user

Keywords

osjs

FAQs

Package last updated on 12 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts