-
614274669d
README.md: fix typo, properly link to config file
main
Xiretza
2024-02-20 22:30:13 +0000
-
2ef758764a
Release v1.0.0
v1.0.0
Xiretza
2024-02-20 22:12:03 +0000
-
623104231f
Add sqlx metadata
Xiretza
2024-02-20 22:18:22 +0000
-
3f2ed1c118
Cargo.toml: add repository and documentation fields
Xiretza
2024-02-20 22:11:33 +0000
-
a52567330a
Add 'run' subcommand
Xiretza
2024-02-20 21:59:43 +0000
-
aecf9509f5
Implement padlock proxy
Xiretza
2024-02-20 21:57:03 +0000
-
fe7cea89c5
Add url, reqwest dependencies
Xiretza
2024-02-20 21:50:49 +0000
-
d1f8e461b1
db: rename methods to clarify token kind
Xiretza
2024-02-20 21:00:08 +0000
-
a50660ddc3
Sort dependencies properly
Xiretza
2024-02-20 19:58:28 +0000
-
3c0db5f1b5
Mention padlock-secret in README
Xiretza
2024-02-15 21:05:32 +0000
-
ead1c7ebad
Enforce minimum length for padlock generation secret
Xiretza
2024-02-15 20:58:41 +0000
-
32d76be0fd
Lint against unwrap/expect
Xiretza
2024-02-15 20:45:10 +0000
-
360f3fcbbf
Improve error handling
Xiretza
2024-02-15 20:14:07 +0000
-
fa7dc5a3f9
Allow specifying IP address to listen on
Xiretza
2024-02-15 19:58:33 +0000
-
0e2d440489
Silence clippy
Xiretza
2024-02-15 18:34:43 +0000
-
31665f3fb0
Update README
deneb
2024-02-11 20:15:32 +0100
-
e913de5e8d
update last_used on verify_user_token
deneb
2024-02-11 20:00:05 +0100
-
731f6f2f6c
bugfix: return existing token instead of creating a new one every time
deneb
2024-02-11 19:12:51 +0100
-
5c747f2b41
slightly shorten db.get_token
deneb
2024-02-11 19:04:53 +0100
-
db133d68d8
remove invalid quotes from editorconfig
deneb
2024-02-11 17:26:33 +0100
-
c887378476
use trait object for database
deneb
2024-02-11 16:48:03 +0100
-
e5b95a1f8e
auth.rs -> auth/mod.rs
deneb
2024-02-11 16:24:34 +0100
-
79bf7f764b
small clean-ups
deneb
2024-02-11 16:23:11 +0100
-
988afff71d
Update README
Xiretza
2024-02-10 22:11:39 +0000
-
e0c12f4c14
Update authors list in Cargo.toml
Xiretza
2024-02-10 22:08:39 +0000
-
765953f9a3
Slightly reduce dependency duplication
Xiretza
2024-02-10 22:05:41 +0000
-
45589781ba
Add cargo-deny config
Xiretza
2024-02-10 22:04:50 +0000
-
271714dd37
Appease clippy
Xiretza
2024-02-10 21:47:35 +0000
-
011ee55fc0
Update README, example config
Xiretza
2024-02-10 21:46:44 +0000
-
f446d67cf4
Implement LDAP authentication backend
Xiretza
2024-02-10 21:44:43 +0000
-
8dd283d773
Rename AuthenticationError::Backend to Database
Xiretza
2024-02-10 20:00:28 +0000
-
e7a73009ad
Update README
Xiretza
2024-02-10 19:08:47 +0000
-
045d5394ca
Implement /generate-server-padlock-2
Xiretza
2024-02-10 18:59:28 +0000
-
8d4b969419
Implement ServerPadlockGenerator
Xiretza
2024-02-10 18:59:21 +0000
-
dbf8a34534
Add sha2 crate
Xiretza
2024-02-10 18:49:23 +0000
-
9c3905c7a5
server: use default API version if not specified
Xiretza
2024-02-10 18:35:20 +0000
-
ccf6d33c89
Make ServerHash a String
Xiretza
2024-02-10 18:34:43 +0000
-
ffe3aa5232
server: pass state to handlers
Xiretza
2024-02-10 18:34:07 +0000
-
7bd354429a
Make UserAuthenticator::create_user_token() take &self
Xiretza
2024-02-10 18:32:58 +0000
-
13e5a6e18c
Create state structs
Xiretza
2024-02-10 13:35:51 +0000
-
5772c26537
database: accept connection string as argument
Xiretza
2024-02-10 13:35:39 +0000
-
dfa8cada5b
use query! and query_as!
deneb
2024-02-10 14:31:07 +0100
-
d8b79ae852
Update config keys, add port
Xiretza
2024-02-10 13:25:33 +0000
-
03bcb4df90
Add command line argument parsing
Xiretza
2024-02-10 13:20:13 +0000
-
eeb2735c63
Add clap dependency
Xiretza
2024-02-10 13:14:55 +0000
-
aef17a7361
Add config
Xiretza
2024-02-10 13:11:19 +0000
-
db604e3eed
Add hex crate
Xiretza
2024-02-10 13:10:46 +0000
-
2bac280f3b
make db only return tokens, not validate
deneb
2024-02-10 14:02:41 +0100
-
3079bc40a7
oops forgot to actually check the token
deneb
2024-02-10 13:48:00 +0100
-
9ee43b85ef
Add toml crate
Xiretza
2024-02-10 12:54:40 +0000
-
c7ed275138
Implement constructors for ServerPadlockGenerator/UserServerKeyGenerator
Xiretza
2024-02-10 12:52:17 +0000
-
d37c09d8d9
Add more instrument macros
Xiretza
2024-02-10 12:51:53 +0000
-
5bdf8d0f2d
Add newtype for padlock generation secret
Xiretza
2024-02-10 12:50:25 +0000
-
3657d83bd1
UserAuthenticator: propagate token creation errors
Xiretza
2024-02-10 12:39:07 +0000
-
51865c365c
distinguish invalid token from database error
deneb
2024-02-10 13:39:10 +0100
-
e56c7525e2
Rename Authenticator to UserAuthenticator
Xiretza
2024-02-10 12:35:05 +0000
-
ffd3a95076
Simplify user token generation
Xiretza
2024-02-10 12:32:49 +0000
-
8c478ace92
fix db connection
deneb
2024-02-10 13:31:23 +0100
-
0a5ab5a199
Add /generate-user-server-key-2 prototype
Xiretza
2024-02-10 11:40:00 +0000
-
f42c7109fb
/api_login: use UserToken
Xiretza
2024-02-10 11:39:34 +0000
-
fbab2494eb
Add ServerPadlockGenerator, UserServerKeyGenerator prototypes
Xiretza
2024-02-10 11:37:38 +0000
-
578c4e237f
Allow converting AuthenticationError to ApiError
Xiretza
2024-02-10 12:23:20 +0000
-
ac7f03db15
Add AuthenticationError enum
Xiretza
2024-02-10 12:08:45 +0000
-
e9ae0468b3
Add thiserror crate
Xiretza
2024-02-10 12:08:29 +0000
-
be6e2cb6cd
add last_used to user_tokens table
deneb
2024-02-10 13:18:08 +0100
-
26bdc4c742
basic implementation of verify_user_token
deneb
2024-02-10 13:10:54 +0100
-
2a1b6bd8ae
generate token and save in database
deneb
2024-02-10 13:07:36 +0100
-
62390aa0ad
Return Result from Authenticator::verify_user_token()
Xiretza
2024-02-10 11:35:18 +0000
-
97ed869230
Pass username to Authenticator::verify_user_token()
Xiretza
2024-02-10 11:34:54 +0000
-
dbcd963bb1
Add base64, time crates
Xiretza
2024-02-10 11:34:32 +0000
-
c8daa312bf
Add hmac, md-5 crates
Xiretza
2024-02-10 11:08:48 +0000
-
34a7d57507
Add UserServerKey, ServerPadlock, ServerHash types
Xiretza
2024-02-10 11:01:40 +0000
-
d195147f35
make Authenticator non-generic
deneb
2024-02-10 12:56:35 +0100
-
399ed56b74
move secrets to secrets.rs
deneb
2024-02-10 12:32:01 +0100
-
e4aa6c1909
impl From<String> for {Password,UserToken}
deneb
2024-02-10 12:30:04 +0100
-
9cd4848ce8
Database::get_token
deneb
2024-02-10 12:25:46 +0100
-
3c5bff0237
trait bound
deneb
2024-02-10 12:11:36 +0100
-
d4639c3152
beginnings of SqliteDatabase
deneb
2024-02-10 12:06:53 +0100
-
0006004db1
Add API error type
Xiretza
2024-02-10 10:49:36 +0000
-
32e99b155c
Implement dummy /api_login
Xiretza
2024-02-10 10:44:31 +0000
-
2447786c81
Impl Deserialize for Password, UserToken
Xiretza
2024-02-10 10:45:38 +0000
-
8ce85262be
Remove nonsensical DebugSecret implementation
Xiretza
2024-02-10 10:45:18 +0000
-
a5a55ad69a
README: mention updater server override
Xiretza
2024-02-10 10:32:58 +0000
-
63cdc0713d
Allow deserializing secrets
Xiretza
2024-02-10 10:23:49 +0000
-
6bfda3f16b
log {create,verify}_user_token
deneb
2024-02-10 11:20:35 +0100
-
9f08d698c3
Add serde
Xiretza
2024-02-10 10:18:12 +0000
-
be0e778f80
Set up tracing-error
Xiretza
2024-02-10 10:13:27 +0000
-
ec9b0993bc
Move axum stuff to separate module
Xiretza
2024-02-10 10:13:11 +0000
-
6a1be899f7
verify_user_token
deneb
2024-02-10 11:11:46 +0100
-
6e70220222
use SecretString for password and user token
deneb
2024-02-10 11:10:58 +0100
-
3f7a1b3e2f
Start axum, add tls-check route
Xiretza
2024-02-10 10:04:10 +0000
-
6ba03b79be
authenticator skeleton
deneb
2024-02-10 10:51:56 +0100
-
bde8d3da15
Add dependencies, set up tracing
Xiretza
2024-02-10 09:53:28 +0000
-
0adbf28b5c
Add clippy configuration
Xiretza
2024-02-10 09:20:44 +0000
-
5370126e2c
Add cargo project scaffold
Xiretza
2024-02-09 20:22:29 +0000
-
a018a8b371
Add license
Xiretza
2024-02-09 20:22:03 +0000
-
244b8ee8ef
Add .editorconfig
Xiretza
2024-02-09 20:21:31 +0000
-
691099499b
Add README.md
Xiretza
2024-02-09 20:05:31 +0000
-
4c6831b1e8
initial empty commit
Xiretza
2024-02-09 19:29:43 +0000