Commit Graph

9 Commits (4357d9b5529f1fbc41658d4c8e3576de4e493d21)

Author SHA1 Message Date
Eric 73442c33a7
feat: implement refresh_token API (#938)
* feat: impl refresh token api

* resolve comment
2023-12-04 13:26:24 +08:00
Eric 870638cbbf
feat: Add me_query API (#940)
* feat: add me query

* fix compile

* update schema
2023-12-04 12:20:05 +08:00
Meng Zhang 19d773e7ad
feat: implement register api check with invitation code (#934)
* feat(webserver): implement is_admin_initialized graphql api

* refactor

* add unit test

* [autofix.ci] apply automated fixes

* renaming

* temp invitations

* update

* update

* implement register check

* test

* update invitations

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-02 00:14:29 +08:00
Meng Zhang 1a9cbdcc3c
feat(ee): implement auth claims (#932)
* feat(ee): implement auth claims

* fix test

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-01 12:46:01 +00:00
Eric 79e704458d
feat(ee): implement user authentication api (#912)
* feat: impl user authentication

* resolve comments

* fix validation code name

* resolve comment
2023-12-01 10:22:53 +08:00
Eric 8dd245ef30
feat: update graphql query to read token (#829) 2023-11-18 10:03:33 -08:00
Eric ce338c7436
feat: validate token during worker registration (#803)
* feat: validate token during worker registration

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* resolve comments

* reslove comments

* format file, update schema file

* resolve comment

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-16 23:05:39 -08:00
Meng Zhang 618009373b
refactor: use tarpc for easier worker <-> hub communication (#781)
* temp

* generic

* adapt client

* rename to api

* Revert "rename to api"

This reverts commit 8a51b24fecd76a78e6df576ec51605b8d8418975.

* refactor: remove uselss mutation

* remove useless connection

* cleanup api structure

* restructure

* add webserver api error

* webserver.rs -> server.rs

* rename service to Hub

* update schema

* update naming

* shrink features

* update

* mv worker.rs -> server/worker.rs
2023-11-14 12:48:20 -08:00
Meng Zhang e521f0637c
feat: add worker command worker::completion and worker::chat (#778) 2023-11-13 23:21:57 +00:00