OS.js is an open-source desktop implementation for your browser with a fully-fledged window manager, Application APIs, GUI toolkits and filesystem abstraction.
This is the Sqlite Auth Provider for OS.js v3
IT IS HIGHLY RECOMMENDED THAT YOU USE https://github.com/os-js/osjs-database-auth INSTEAD
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',
}
}
});
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 usersuser:add --username=STR
- Adds useruser:pwd --username=STR
- Changes user passworduser:remove --username=STR
- Removes user