Commit Graph

148 Commits

Author SHA1 Message Date
9daf93147d SearchUsers now case insensitive. 2020-09-08 14:51:16 +02:00
a8ae8d1430 Adding a permissions manager utility. 2020-09-05 02:46:03 +02:00
5e46877140 Non matching user = debug, not error. 2020-09-05 01:47:47 +02:00
dc1a57c328 Baguette::Log. 2020-08-28 01:50:05 +02:00
030f6cf1ba Email editing WIP. 2020-08-27 18:14:44 +02:00
bd9c196cc6 New logging system. 2020-08-24 17:36:22 +02:00
ecc509ae24 Proper response sent on password recovery. 2020-08-17 15:32:47 +02:00
db80f3b1bc Password recovery stuff. 2020-08-12 18:33:32 +02:00
2e8a2d448d Profile edition overhauls, RO profile properties. 2020-08-10 23:45:44 +02:00
83d9513206 Clients fixed. 2020-07-23 19:39:58 +02:00
54a2ba563f timer is now handled correctly. 2020-07-18 17:15:40 +02:00
fc0939a1cd Authd adapted to libipc version 0.7. 2020-07-14 17:48:16 +02:00
28c30b110d Following the libipc master branch. 2020-07-13 14:43:19 +02:00
7e1277e2d1 Search users on login and full name (in their profile). 2020-06-25 16:44:35 +02:00
7b14d4a971 Merge branch 'master' of ssh://git.baguette.netlib.re:2299/Baguette/authd 2020-05-08 14:51:10 +02:00
2ed19632f2 Authd: mailer options added. 2020-05-08 14:50:15 +02:00
e1567258f4 Token responses send the UID as well. 2020-04-25 10:34:07 +02:00
f6bbf77732 Profile edition request. 2020-04-18 21:21:17 +02:00
e47f7e7f75 Registration dates sent to clients on GetUser and similar. 2020-04-15 11:39:34 +02:00
55573dd330 shared_key no longer required to validate users. 2020-04-03 16:42:45 +02:00
Philippe PITTOLI
18e06134fd Authd::Request::SearchUser 2020-03-23 15:06:54 +01:00
Philippe PITTOLI
817425de8d Merge branch 'master' of ssh://git.karchnu.fr:2202/WeirdOS/authd 2020-03-23 06:59:42 +01:00
Philippe PITTOLI
189e22902e Recording user registration and last connection dates. 2020-03-23 06:54:45 +01:00
6f4f4b234a Improved UI to print malformed requests. 2020-02-26 14:54:14 +01:00
2678ccaf9f Small typo in printed strings. 2020-02-26 14:46:30 +01:00
02c1d06dd1 Primitive WIP UI added, useful mostly for debug. 2020-02-26 14:45:40 +01:00
0fb17f3be6 Responds with error on unknown login. 2020-02-26 14:36:54 +01:00
Philippe PITTOLI
bd68148924 Password Recovery. 2020-02-23 20:37:50 +01:00
Philippe PITTOLI
b6cbe6c84a ModUser takes uid|login, can change phone and email 2020-02-09 15:47:44 +01:00
Philippe PITTOLI
f66a08ff60 removed a useless variable 2020-02-07 03:54:26 +01:00
Philippe PITTOLI
fb4a1a2303 Authd: updated to the latest ipc.cr version (0.5.2). 2020-02-06 10:20:57 +01:00
Philippe PITTOLI
10472d5c0d On user registration: email address verification and sending activation email. 2020-01-27 13:16:16 +01:00
Philippe PITTOLI
e789a16ac6 Run the activation-mailer. 2020-01-23 15:45:05 +01:00
Philippe PITTOLI
8ddf5cf316 User contact activation done. 2020-01-22 14:43:58 +01:00
Philippe PITTOLI
d5f2b3816f bugfix ValidateUser 2020-01-22 10:19:11 +01:00
Philippe PITTOLI
af44f82e99 user_validation 2020-01-22 10:13:59 +01:00
Philippe PITTOLI
bef2e73fff Contact informations. 2020-01-22 01:55:57 +01:00
7610025334 Fixes user creation in certain cases. 2020-01-20 13:44:48 +01:00
0e9d595a23 Exception handling. 2020-01-04 09:02:31 +01:00
e1c204b742 DODB API updates. 2020-01-04 08:40:13 +01:00
e8ace8a6eb Fixes an error client. 2019-12-19 03:58:00 +01:00
efa482d4f3 --help banner added. 2019-12-17 15:56:42 +01:00
6b08786947 Improves an error message. 2019-12-17 13:40:10 +01:00
b5c055b553 Major update that includes various breaking changes.
- backend is now a DODB::DataBase, not a passwd and group file anymore.
- extras have been removed. A WIP User#profile field exists, that can be
  a JSON::Any. No profile validation has been implemented as of this
  commit.
- authd now provides permission over resources, which is more precise
  than checking whether a user is part of a group.
- permissions are now checked through authd once again: tokens don’t
  hold permissions anymore.
- tokens are now minimal authentication “keys” to prove who you are and
  nothing more.
2019-12-15 23:38:49 +01:00
6a947402d7 Merge branch 'master' of github.com:Lukc/authd 2019-12-12 00:45:56 +01:00
4b94f72962 Updated code to match more recent dependencies. 2019-12-12 00:45:12 +01:00
Philippe PITTOLI
45162d8434 Less cryptic unauthorized error messages (ListUsers) 2019-12-10 04:50:36 +01:00
9dc39ace09 WIP for an administration panel. 2019-12-09 21:57:38 +01:00
a2d633f4fb Password updates and matching LS updates. 2019-12-07 23:57:40 +01:00
4b7caff906 GetExtra, SetExtra, and matching LS updates. 2019-12-07 21:09:17 +01:00
3c203a2e48 Removes useless param from Request::Register.new 2019-12-07 18:08:33 +01:00
9ae887071e Registration requests if started with -R. 2019-12-07 00:53:31 +01:00
16fa2271f6 Grooming. 2019-11-23 01:08:05 +01:00
565ee93c9a Grooming. 2019-11-22 23:13:34 +01:00
2e5135656c Overhauled response types. 2019-11-22 22:55:12 +01:00
297471b504 Grooming. 2019-11-22 18:14:52 +01:00
32a8c23524 Grooming. 2019-11-22 17:31:56 +01:00
c2fa282b7d Split "passwd" to a shard. 2019-11-17 15:56:35 +01:00
7798d119ed Grooming, preparing for split. 2019-11-17 15:50:26 +01:00
bcead2b9a2 Avatars removed from passwd and authd APIs.
Will be re-added later through a more extensible mechanism.
2019-11-17 15:30:53 +01:00
c6249e575c Updating for new IPC.cr API. 2019-11-03 13:17:24 +01:00
a5247fd9f0 Imposed authentication on a few requests. 2019-10-10 20:58:44 +02:00
e9e2b65729 password_hash is masked in server responses. 2019-06-29 03:55:40 +02:00
505171ff7b Avoids passwd corruption on #mod_user. 2019-06-29 03:55:23 +02:00
3038e7d076 Missed IPC.cr update.
Duh~, hopefully we’ll soon have automated tests.
2019-06-29 02:43:31 +02:00
908f028322 Update to new crystal-jwt APIs. 2019-06-28 18:20:34 +02:00
66e2eaad48 IPC.cr API updates. 2019-06-06 01:16:52 +02:00
96134ba876 libipc API updates. 2019-06-05 22:38:08 +02:00
a31bd4c940 Updates for the new libipc APIs. 2019-06-05 22:35:35 +02:00
d7f54062fc Updates for new libipc APIs. 2019-06-05 22:30:29 +02:00
49449956c3 Database integrity fix. 2019-05-30 11:27:23 +02:00
c642851165 Avatar update through ModUserRequest. 2019-05-29 19:45:03 +02:00
6a19ff604a ModUser request. 2019-05-29 16:06:11 +02:00
a83c3c8e5c WIP Passwd#mod_user 2019-05-29 15:35:14 +02:00
8b03bc4da1 WIP Passwd#mod_user 2019-05-29 15:30:23 +02:00
c137bd343a Fixing obsolete requires. 2019-02-19 20:45:19 +01:00
87b90c1768 AuthD::Client#get_user?(login, password) added. 2019-02-16 22:06:56 +01:00
66ac26b46e Avatars re-added, I guess. 2019-01-14 21:46:40 +09:00
136bb589f5 User#avatar removed.
Removed because that information was not present in passwd anyway.
2019-01-09 03:52:21 +09:00
6d3ef91526 Adding missing groups to tokens.
Also removing a few deprecated FIXMEs.
2019-01-09 03:05:37 +09:00
1f85aab84c GetUser requests. 2019-01-08 01:04:20 +09:00
ddb8edacbb Coding style. 2018-12-19 21:57:48 +09:00
a7a1c54161 WIP registration. 2018-12-19 21:54:19 +09:00
313536f996 Variable naming.
Some breaking changes in the communications with authd (some request
attributes renamed), but projects using AuthD::Client shouldn’t see
anything.
2018-12-17 12:39:01 +09:00
6a008daf87 Crecto replacement.
Replaced by a `passwd` and `group` files reader that both follow UNIX
format. Only difference with a live system will be the password hash
field, which is stored in `passwd` instead of a dedicated `shadow` file
(and which is likely encoded differently).
2018-12-17 08:56:03 +09:00
621135ce5a Finished conversion to a libIPC-based microservice. 2018-11-13 02:51:21 +09:00
d1e9445a11 WIP of prototype authd using IPC instead of HTTP. 2018-10-10 04:46:34 +09:00
abc364e212 chomp() used instead of gsub where possible. 2018-09-24 22:10:24 +02:00
3498320721 JWT key import. 2018-09-23 16:34:56 +02:00
20fa7650dd DataBase connection check during startup. 2018-09-23 16:17:48 +02:00
22d392268a Not enforcing port number anymore. 2018-09-23 16:02:35 +02:00
3d5dd30d82 Improved password imports. 2018-09-22 23:10:14 +02:00
ee69c365ba User -> AuthD::User, authd_user : AuthD::User 2018-09-22 21:42:21 +02:00
db209117f8 Authd library added to provide an auto-check middleware. 2018-09-22 21:25:03 +02:00
a92b94cccb Primitive adduser tool added. 2018-09-22 21:24:44 +02:00
8275a77576 Various.
- JWT key can be set from command-line (through a file).
  - User class split to a separate file to allow use by other tools.
  - Minor style changes.
2018-09-22 21:23:50 +02:00
9561a180d7 Improved configuration CLI. 2018-09-22 19:46:48 +02:00
4d5b1fdcf0 initial commit 2018-09-22 17:08:28 +00:00