Commit Graph

38 Commits (49e3eb107cfc1d3d54a361a8ede354de9dbb752f)

Author SHA1 Message Date
Steven de8db63811 chore: rename workspace setting service 1 year ago
Steven 8382354ef7 feat: add user-defined name to memo 1 year ago
Wen Sun e4488da96e
fix: signup is not allowed if password login is disabled (#2776)
Signup is not allowed if password login is disabled

If password login is disabled in the system configuration, the "signup" in the "/auth" page disappears, but the user can manually enter "/auth/signup" to access the system by creating a new user.
1 year ago
Steven 1c7fb77e05 chore: update user setting names 1 year ago
Athurg Gooth 91296257fc
chore: remove invalid access token from db (#2539)
Remove invalid access token from db
1 year ago
Steven 7f7ddf77b8 chore: update allow sign up default value 1 year ago
Athurg Gooth 52fdf8bccd
fix: persist jwt expires by cookie (#2509)
fix pesist jwt expires by cookie
1 year ago
Steven 36b4ba33fa chore: remove outdated activity definition 1 year ago
Steven 5b3af827e1 chore: move common packages to internal 1 year ago
Athurg Gooth 0bfcff676c
feat: add support for remember sign in (#2402) 1 year ago
Steven c58820fa64 chore: update username regexp 1 year ago
Steven ad3487a9ac chore: update username matcher 1 year ago
Steven 5cec1a71da chore: update access token generator 1 year ago
Steven ae1e22931f chore: auto remove current access token when sign out 1 year ago
Steven 8fbd33be09 chore: update username matcher 1 year ago
Steven bff41a8957 fix: invalid username checks 1 year ago
Steven cd0ea6558d chore: update golangci-lint config 1 year ago
Steven f5802a7d82 chore: update access token ui 1 year ago
Steven 33d9c13b7e chore: remove openid field from user 1 year ago
Steven 42bd9b194b feat: impl user access token api 1 year ago
boojack 4af0d03e93
chore: add user profile page (#2175)
chore: some enhancements
2 years ago
boojack 35f2d399e2
chore: update api v1 docs (#2117)
* chore: update apiv1 docs

* chore: update
2 years ago
Lincoln Nogueira 4491c75135
feat: add SwaggerUI and v1 API docs (#2115)
* - Refactor several API routes from anonymous functions to regular definitions. Required to add parseable documentation comments.

- Add API documentation comments using Swag Declarative Comments Format

- Add echo-swagger to serve Swagger-UI at /api/index.html

- Fix error response from extraneous parameter resourceId to relatedMemoId in DELETE("/memo/:memoId/relation/:relatedMemoId/type/:relationType")

- Add an auto-generated ./docs/api/v1.md for quick reference on repo (generated by swagger-markdown)

- Add auxiliary scripts to generate docs.go and swagger.yaml

* fix: golangci-lint errors

* fix: go fmt flag in swag scripts
2 years ago
boojack 7c5296cf35
chore: update id type to int32 (#2076) 2 years ago
boojack 5f819fc86f
chore: update auth middleware (#2057)
* chore: update auth middleware

* chore: update

* chore: update
2 years ago
Lilith c1cbfd5766
feat: add system setting to disable password-based login (#2039)
* system setting to disable password login

* fix linter warning

* fix indentation warning

* Prohibit disable-password-login if no identity providers are configured

* Warnings and explicit confirmation when en-/disabling password-login

- Disabling password login now gives a warning and requires a second
  confirmation which needs to be explicitly typed.
- (Re)Enabling password login now also gives a simple warning.
- Removing an identity provider while password-login is disabled now
  also warns about possible problems.

* Fix formatting

* Fix code-style

---------

Co-authored-by: traumweh <5042134-traumweh@users.noreply.gitlab.com>
2 years ago
Mason Sun a9eb605b0f
fix: auth api json format (#2021)
Update auth.go

api/v1/auth/相关接口未应用convertUserFromStore方法,会导致User对象获得类型存在问题,导致User定义的`json:`相关的字段转化失效。
导致输出json未被正确格式化
2 years ago
boojack 2effacd0a6
chore: add api docs (#1965) 2 years ago
boojack 7e391bd53d
chore: remove resource public id (#1912)
* chore: remove resource public id

* chore: update
2 years ago
boojack 0e05c62a3b
chore: update common utils (#1908) 2 years ago
boojack a7573d5705
refactor: migrate memo to apiv1 (#1907)
* refactor: migrate memo to apiv1

* chore: update

* chore: update

* chore: update

* chore: upate

* chore: update

* chore: update
2 years ago
boojack 66e65e4dc1
refactor: migrate definition to api v1 (#1879)
* refactor: user api v1

* refactor: system setting to apiv1

* chore: remove unused definition

* chore: update

* chore: refactor: system setting

* chore: update

* refactor: migrate tag

* feat: migrate activity store

* refactor: migrate shortcut apiv1

* chore: update
2 years ago
boojack 9a8d43bf88
chore: update user store names (#1877)
* chore: update user store names

* chore: update
2 years ago
boojack 5fe644a3b6
chore: add jwt middleware in apiv1 (#1869) 2 years ago
boojack 6a78887f1d
chore: update store types name (#1862) 2 years ago
boojack 7226a9ad47
chore: update idp store (#1856) 2 years ago
boojack b44f2b5ffb
chore: migrate user setting to api v1 package (#1855)
* chore: migrate to api v1 package

* chore: update
2 years ago
boojack 4ed9a3a0ea
refactor: migrate auth routes to v1 package (#1841)
* feat: add api v1 packages

* chore: migrate auth to v1

* chore: update test
2 years ago