53 Commits

Author SHA1 Message Date
Evan Goode
716fd854a4 nix flake update, dependency bumps 2025-07-26 12:31:22 -04:00
Evan Goode
8ff0a07efc Bump to 3.1.1 2025-04-25 13:07:53 -04:00
Evan Goode
e82e6f7117 systemd: wants network-online.target, nss-lookup.target 2025-04-06 21:46:09 -04:00
Evan Goode
33d4d91ab3 systemd: wait for network-online.target, nss-lookup.target 2025-04-06 21:42:30 -04:00
Evan Goode
556b42806a Bump version to 3.1.0 2025-04-06 21:25:31 -04:00
Evan Goode
770ceededb Batch and rate-limit POST /profiles/minecraft to fallback API servers
For https://github.com/unmojang/drasl/issues/112
2025-04-04 21:00:08 -04:00
Evan Goode
7ebbafd2be Bump go-jose version 2025-03-30 11:49:19 -04:00
Evan Goode
cec6d6828c Dependency version bumps 2025-03-29 18:41:12 -04:00
Evan Goode
5c1f6c1cfa
Implement SSO via OIDC (#127)
Resolves https://github.com/unmojang/drasl/issues/39

* Use __Host- cookie prefix instead of setting Domain

See https://stackoverflow.com/a/64735551

* Unlinking OIDC accounts

* AllowPasswordLogin, OIDC docs, cleanup

* YggdrasilError

* Migrate existing password users without login

* API query/create/delete user OIDC identities

* test APICreateOIDCIdentity

* test APIDeleteeOIDCIdentity

* API Create users with OIDC identities

* OIDC: PKCE

* Use YggdrasilError in authlib-injector routes

* OIDC: AllowChoosingPlayerName

* recipes.md: Update for OIDC and deprecated config options

* OIDC: fix APICreateUser without password, validate oidcIdentities

* OIDC: error at complete-registration if no preferred player name

* Proper error pages

* MC_ prefix for Minecraft Tokens
2025-03-22 16:40:26 -04:00
Evan Goode
0b7264230c Merge remote-tracking branch 'upstream/master' into next 2025-03-02 16:27:22 -05:00
dependabot[bot]
13ed66f735
Bump golang.org/x/net from 0.23.0 to 0.33.0 (#129)
* Bump golang.org/x/net from 0.23.0 to 0.33.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.23.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.23.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update vendorHash

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Evan Goode <mail@evangoo.de>
2025-01-16 01:42:42 +00:00
Evan Goode
c965be790f Bump to 2.1.1 2025-01-15 20:18:14 -05:00
Evan Goode
4fca7cc8e4 Add deprecation message to /drasl/api/v1/* routes 2024-12-28 21:07:32 -05:00
Evan Goode
f045b9a57e Bump version to 3.0.0 2024-12-28 21:07:32 -05:00
Evan Goode
2dab34440b Fix 3->4 DB migration, DB migration tests 2024-12-28 21:07:32 -05:00
Evan Goode
9cbfc41b36 Bump version to 2.1.0 2024-11-26 14:56:59 -05:00
misuzu
833c6ebe03 Switch to nixos-unstable & remove outdated patch
Also update supportedSystems to include darwin

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/9d29cd266cebf80234c98dd0b87256b6be0af44e' (2024-05-25)
  → 'github:NixOS/nixpkgs/2768c7d042a37de65bb1b5b3268fc987e534c49d' (2024-10-23)
2024-10-25 11:30:24 -04:00
Evan Goode
f85fb8195b Bump version to 2.0.2 2024-09-05 22:26:32 -04:00
Evan Goode
71983605f8 Bump to 2.0.1 2024-08-21 20:36:14 -04:00
Evan Goode
9ff90d3df9 Bump to 2.0.0 2024-08-15 12:33:59 -04:00
Evan Goode
6292cf089a Vendor hash 2024-08-15 12:33:59 -04:00
Evan Goode
a1eb8046a3 fix go-swag on Nix 2024-08-15 12:33:59 -04:00
Evan Goode
b17b1e3dbf Fix nix recipe 2024-08-15 12:33:59 -04:00
Evan Goode
c70e266d57 Start implementing Drasl API 2024-08-15 12:33:59 -04:00
Evan Goode
01809e968a Update to v1.1.1 2024-06-27 12:56:17 -04:00
Evan Goode
f37e9a5b2b Update to v1.1.0
SQLite database schema has been updated and the Docker build system has
been radically changed, I think this warrants a semver minor version
bump.
2024-05-23 16:58:38 -04:00
Evan Goode
0a991837df Build and cross-build Docker images using Nix 2024-05-23 16:58:38 -04:00
Evan Goode
87a0749860 Release 1.0.3 2024-04-22 23:55:32 -04:00
Evan Goode
630144bd3a Bump net/http 2024-04-21 00:01:56 -04:00
Evan Goode
365d37d729 Update insecure dependencies, bump to 1.0.2 2023-12-21 10:45:44 -05:00
Evan Goode
19d51767d5 Fix slim skins and bump version to 1.0.1
Resolves https://github.com/unmojang/drasl/issues/37
2023-11-30 04:59:24 +00:00
Evan Goode
e8537ea54c OfflineSkins, also fix several skin issues 2023-11-10 20:19:07 -05:00
Evan Goode
c637ad83a6 Bump flake version to 1.0.0 2023-09-19 22:49:42 -04:00
Evan Goode
f68e2308c0 Icon 2023-09-17 00:21:05 -04:00
Evan Goode
569a273292 A couple skin tests 2023-09-07 16:48:07 -04:00
Evan Goode
15559209ca Create config, state directories if they don't exist
We might want to gate this behind a flag in build_config.go, the Docker
build will want this but maybe not other distributions.
2023-09-03 17:51:20 -04:00
Evan Goode
e361538f85 NixOS module 2023-09-03 17:17:31 -04:00
Evan Goode
50a0b95121 Dockerfile, template config file 2023-09-02 19:12:28 -04:00
Evan Goode
d750dacdbb Config validation/cleaning, cleanup 2023-08-29 00:26:21 -04:00
Evan Goode
3456e33085 Switch from 32-character hex accessTokens to JWTs 2023-08-20 02:15:04 +00:00
Evan Goode
7665b2129d Add configurable body size limit
Closes #13
2023-07-08 23:30:30 -04:00
Evan Goode
242435b899 fix nix build 2023-07-07 17:49:01 -04:00
Evan Goode
57a1d4b879 skin bug: use profileUser, not user 2023-07-07 17:37:25 -04:00
Evan Goode
aff083e652 remove go-funk 2023-07-06 02:38:03 +00:00
Evan Goode
0d53fa95e7 add profile pic to admin view 2023-07-06 02:38:03 +00:00
Evan Goode
f89926bc41 nix: Update vendor SHA256 2023-07-06 02:38:03 +00:00
Evan Goode
c53f0691a5 nix: Update vendor SHA256 2023-06-27 00:00:00 -04:00
Evan Goode
e99bbb51d6 rate limiting 2023-05-31 01:11:19 -04:00
Evan Goode
956e34dd2e Nix flake 2023-05-21 01:02:18 -04:00
Evan Goode
b2174cb310 pre-commit 2023-04-05 22:17:32 -04:00