Logo
Explore Help
Register Sign In
Aaltronav/dougal-software
1
0
Fork 0
You've already forked dougal-software
mirror of https://gitlab.com/wgp/dougal/software.git synced 2025-12-06 12:27:07 +00:00
Code Issues Packages Projects Releases Activity
Files
84510e8dc9f2ca63470fc82b213ce346f34df82a
dougal-software/lib/www/server/api/middleware/auth/index.js

6 lines
185 B
JavaScript
Raw Normal View History

Initial commit
2020-08-08 23:59:13 +02:00
exports.jwt = require('./jwt');
Add authentication middleware. The user is authenticated by one of the following methods, in order of priority: * The presence of a valid JWT. * Its IP. * Its hostname. In the case of the latter two methods, if authentication is successful a JWT valid for 15 minutes will be generated and passed back to the user in a cookie.
2020-10-11 13:11:43 +02:00
exports.authentify = require('./authentify');
Add authorisation middleware. Defines three levels of access: * read: anyone who is logged in * write: `user` and `admin` roles * admin: `admin` roles
2020-10-12 19:42:02 +02:00
exports.access = require('./access');
Add FIXME
2025-07-24 19:20:58 +02:00
exports.operations = require('./operations'); // FIXME this is crap
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 880ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API