0d07af7d79
feat: style: return unauthorized when token isnt found and flatten function structure
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-02 19:26:37 +02:00
1d7cdf343b
feat: add users endpoint and add me and uuid under it
...
ci/woodpecker/push/build-and-publish Pipeline failed
Adds a users endpoint that returns all users on the server, will require instance permissions in future.
Place previous user requests under users to avoid having multiple endpoints.
2025-05-02 19:19:59 +02:00
cc07d78325
build: add a run-dev.sh for local testing
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-02 16:23:45 +02:00
2c73a07961
build: use one log file instead of 2
2025-05-02 16:23:11 +02:00
c76fd73179
refactor: move regex code to mod.rs
2025-05-02 16:22:30 +02:00
0ccfa53746
docs: remove left over comment
2025-05-02 16:21:44 +02:00
97f7595cc5
style: cargo clippy and format
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-02 15:20:22 +02:00
5d0d666094
ci: remove unused cross file
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-02 14:52:28 +02:00
b853ed3e98
use docker as build system
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-02 14:23:50 +02:00
4295e93134
ci: dont use tee
ci/woodpecker/push/build-and-publish Pipeline failed
2025-05-02 13:53:03 +02:00
ad4effd425
ci: specify path for tee since the command wasnt found
...
ci/woodpecker/push/build-and-publish Pipeline failed
I have no idea how this even happened, it should be included in the image
2025-05-02 13:50:06 +02:00
f020345e8a
ci: install docker in rust container
ci/woodpecker/push/build-and-publish Pipeline failed
2025-05-02 13:46:03 +02:00
040be2126c
ci: try using cross for cross compile
ci/woodpecker/push/build-and-publish Pipeline failed
2025-05-02 13:38:33 +02:00
3647dbcd41
ci: add musl-dev
ci/woodpecker/push/build-and-publish Pipeline failed
2025-05-02 13:25:50 +02:00
eaa4fab96f
Revert "ci: add step to install libssl-dev"
...
This reverts commit df99a1effe
.
2025-05-02 13:24:52 +02:00
df99a1effe
ci: add step to install libssl-dev
ci/woodpecker/push/build-and-publish Pipeline failed
2025-05-02 13:18:13 +02:00
dc5ac8889a
ci: try using alpine for cross
ci/woodpecker/push/build-and-publish Pipeline failed
2025-05-02 13:13:01 +02:00
0f94bfbd28
fix: add missing dashes
ci/woodpecker/push/build-and-publish Pipeline failed
2025-05-02 13:09:24 +02:00
b16d9c3b71
ci: build for x86_64 and arm64
...
ci/woodpecker/push/build-and-publish Pipeline failed
This is an *attempt* to make the build system work for arm64 images as well, fingers crossed!
2025-05-02 13:08:24 +02:00
8f611c5d37
chore: use debian:12-slim in docker
2025-05-02 13:07:41 +02:00
481c2c3648
feat: use a logging library
...
ci/woodpecker/push/build-and-publish Pipeline was successful
gives us logs from actix and sqlx that otherwise arent exposed to us
2025-05-02 01:18:13 +02:00
80111af3de
chore: use image from forgejo container registry
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-02 00:41:26 +02:00
280e989c4b
ci: remove unused docker commands
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-02 00:34:46 +02:00
6c53d23bb7
ci: use --push on docker build
ci/woodpecker/push/build-and-publish Pipeline failed
2025-05-02 00:29:43 +02:00
28fdcdcd3e
ci: add missing tag to push
ci/woodpecker/push/build-and-publish Pipeline failed
2025-05-02 00:26:11 +02:00
f6888b1803
ci: use environment instead of settings
ci/woodpecker/push/build-and-publish Pipeline failed
2025-05-02 00:22:48 +02:00
7ad2771f52
ci: add build and docker publish ci
2025-05-02 00:21:18 +02:00
22ab3d8a04
feat: add a way to revoke refresh_tokens using device_name
2025-05-01 20:19:39 +02:00
a89d705239
feat: use device_name in refresh_tokens table
2025-05-01 20:19:18 +02:00
c009d578a7
perf: optimize user fetching code
2025-05-01 20:18:39 +02:00
705abeb643
fix: fix password regex
...
this should probably be moved to its own function so we can change it on the fly
2025-05-01 20:17:59 +02:00
1646e60e65
fix: underscore unused config var in data
2025-05-01 20:15:38 +02:00
2864196584
perf: avoid cloning when checking access
2025-05-01 20:12:02 +02:00
7b86706793
perf: dont needlessly update uuid in token
2025-05-01 19:19:35 +02:00
aea640a64c
style: use the same response for login/register
2025-05-01 19:18:44 +02:00
0b25e3fb87
feat: add user lookup to api
...
lets you use an access token and a uuid to look up users on the instance
2025-05-01 07:06:58 +02:00
83872ed7a6
feat: add a function to check access token
...
lets me reuse something that will happen often instead of having to write it manually in every file
2025-05-01 07:06:14 +02:00
3c976d666d
fix: add NOT NULL to table keys
2025-05-01 07:05:31 +02:00
0b516a269d
fix: remove unused import
2025-05-01 07:04:56 +02:00
725a16d1f5
feat: integrate token authentication
2025-05-01 05:01:25 +02:00
1d0f8ecd00
feat: add refresh endpoint
2025-05-01 03:54:26 +02:00
4210545db4
feat: add tables for refresh/access tokens
2025-05-01 03:54:26 +02:00
b4469a6317
feat: prepare for access/refresh tokens in register
2025-05-01 03:54:26 +02:00
91398ecd5b
style: move auth to own folder
2025-05-01 03:54:26 +02:00
a88467fa28
feat: create crypto.rs module for generation of tokens
2025-05-01 03:42:33 +02:00
c69f2eb4f0
feat: add docker files
...
adds compose.yml, Dockerfile and entrypoint.sh for running the backend inside of docker
2025-05-01 01:09:24 +02:00
026d48c6e7
feat: load config from proper location
...
also adds a way to change load location using cmdline arguments
2025-05-01 01:08:45 +02:00
7eea0cd4fe
build: optimize release build
...
use fat lto, strip builds and only 1 codegen-unit
2025-04-30 21:43:16 +02:00
87edb9dd12
feat: implement argon2id and expect passwords to be pre-hashed
2025-04-30 21:36:22 +02:00
3461218025
feat: add bogus login
2025-04-30 19:17:14 +02:00