This is an automated email from the ASF dual-hosted git repository.

LinkinStars pushed a change to branch fix/2.0.4/user
in repository https://gitbox.apache.org/repos/asf/answer.git


    from 640a9ab2 fix(security): enforce follow visibility controls
     new 93238c79 fix(security): protect question list visibility
     new 444cd4e3 fix(security): keep login tokens out of URLs
     new 3e4a72cd fix(security): restrict access to non-public revisions
     new 38aa122b fix(security): enforce search result visibility

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 cmd/wire_gen.go                                    |   9 +-
 docs/docs.go                                       |  66 ++++++++
 docs/swagger.json                                  |  66 ++++++++
 docs/swagger.yaml                                  |  41 +++++
 internal/base/constant/cache_key.go                |   2 +
 internal/base/middleware/auth.go                   |   3 -
 .../{user_center_plugin_auth.go => auth_test.go}   |  27 ++--
 internal/controller/connector_controller.go        |  10 +-
 .../v29.go => controller/login_handoff.go}         |  19 +--
 internal/controller/login_handoff_test.go          | 156 +++++++++++++++++++
 .../controller/plugin_user_center_controller.go    |  16 +-
 internal/controller/user_controller.go             |  30 ++++
 internal/repo/answer/answer_repo.go                |  19 +++
 internal/repo/question/question_repo.go            | 134 ++++++++++++++++-
 internal/repo/search_common/search_repo.go         |   8 +-
 internal/repo/search_common/search_repo_test.go    |  61 ++++++++
 internal/repo/search_sync/search_sync.go           |  81 +++++++++-
 internal/repo/search_sync/search_sync_test.go      | 141 +++++++++++++++++
 internal/router/answer_api_router.go               |   1 +
 internal/schema/question_schema.go                 |   8 +-
 .../question_schema_test.go}                       |  26 ++--
 internal/schema/user_schema.go                     |  10 ++
 internal/service/activity/activity.go              |  49 ++++++
 .../service/activity/revision_visibility_test.go   | 167 +++++++++++++++++++++
 internal/service/auth/login_handoff.go             |  88 +++++++++++
 internal/service/auth/login_handoff_test.go        | 136 +++++++++++++++++
 internal/service/content/question_service.go       |  28 ++--
 .../service/plugin_common/plugin_common_service.go |  21 ++-
 internal/service/provider.go                       |   1 +
 ui/src/pages/Users/AuthCallback/index.tsx          |  26 +++-
 ui/src/services/common.ts                          |   7 +
 31 files changed, 1377 insertions(+), 80 deletions(-)
 copy internal/base/middleware/{user_center_plugin_auth.go => auth_test.go} 
(61%)
 copy internal/{migrations/v29.go => controller/login_handoff.go} (64%)
 create mode 100644 internal/controller/login_handoff_test.go
 create mode 100644 internal/repo/search_common/search_repo_test.go
 create mode 100644 internal/repo/search_sync/search_sync_test.go
 copy internal/{base/middleware/header_test.go => 
schema/question_schema_test.go} (55%)
 create mode 100644 internal/service/activity/revision_visibility_test.go
 create mode 100644 internal/service/auth/login_handoff.go
 create mode 100644 internal/service/auth/login_handoff_test.go

Reply via email to