Skip to content

passport中间件影响上下文 #3

Description

@mianhuatan

环境
app: https://github.com/appsecco/dvna
node: v12.16.1

在dvna上,如果http-request-context在passport中间件之前使用上下文将会丢失,从当前executionAsyncId往上查找,找不到rootId
看了cls_hooked 和express-http-context 的issues都存在这个问题,
如果将http-request-context 在passport中间件之后使用,则可以获取上下文

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions