Commit Graph

35 Commits (10c81ccba3707dbea922e9c86a868232663092a1)

Author SHA1 Message Date
Steven 1c7fb77e05 chore: update user setting names
Athurg Gooth 91296257fc
chore: remove invalid access token from db ()
Remove invalid access token from db
Steven 7f7ddf77b8 chore: update allow sign up default value
Athurg Gooth 52fdf8bccd
fix: persist jwt expires by cookie ()
fix pesist jwt expires by cookie
Steven 36b4ba33fa chore: remove outdated activity definition
Steven 5b3af827e1 chore: move common packages to internal
Athurg Gooth 0bfcff676c
feat: add support for remember sign in ()
Steven c58820fa64 chore: update username regexp
Steven ad3487a9ac chore: update username matcher
Steven 5cec1a71da chore: update access token generator
Steven ae1e22931f chore: auto remove current access token when sign out
Steven 8fbd33be09 chore: update username matcher
Steven bff41a8957 fix: invalid username checks
Steven cd0ea6558d chore: update golangci-lint config
Steven f5802a7d82 chore: update access token ui
Steven 33d9c13b7e chore: remove openid field from user
Steven 42bd9b194b feat: impl user access token api
boojack 4af0d03e93
chore: add user profile page ()
chore: some enhancements
boojack 35f2d399e2
chore: update api v1 docs ()
* chore: update apiv1 docs

* chore: update
Lincoln Nogueira 4491c75135
feat: add SwaggerUI and v1 API docs ()
* - 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
boojack 7c5296cf35
chore: update id type to int32 ()
boojack 5f819fc86f
chore: update auth middleware ()
* chore: update auth middleware

* chore: update

* chore: update
Lilith c1cbfd5766
feat: add system setting to disable password-based login ()
* 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>
Mason Sun a9eb605b0f
fix: auth api json format ()
Update auth.go

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

* chore: update
boojack 0e05c62a3b
chore: update common utils ()
boojack a7573d5705
refactor: migrate memo to apiv1 ()
* refactor: migrate memo to apiv1

* chore: update

* chore: update

* chore: update

* chore: upate

* chore: update

* chore: update
boojack 66e65e4dc1
refactor: migrate definition to api v1 ()
* 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
boojack 9a8d43bf88
chore: update user store names ()
* chore: update user store names

* chore: update
boojack 5fe644a3b6
chore: add jwt middleware in apiv1 ()
boojack 6a78887f1d
chore: update store types name ()
boojack 7226a9ad47
chore: update idp store ()
boojack b44f2b5ffb
chore: migrate user setting to api v1 package ()
* chore: migrate to api v1 package

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

* chore: migrate auth to v1

* chore: update test