Skip to content

fix: spec compliant token verification - #501

Open
debdutdeb wants to merge 1 commit into
matrix-org:developfrom
RocketChat:spec-compliant-token-checking
Open

fix: spec compliant token verification#501
debdutdeb wants to merge 1 commit into
matrix-org:developfrom
RocketChat:spec-compliant-token-checking

Conversation

@debdutdeb

Copy link
Copy Markdown

No description provided.

Signed-off-by: Debdut Chakraborty <debdutdeb@outlook.com>
@debdutdeb
debdutdeb requested a review from a team as a code owner June 30, 2024 23:37
@debdutdeb
debdutdeb force-pushed the spec-compliant-token-checking branch from 1334c64 to 4730173 Compare June 30, 2024 23:37

@tadzik tadzik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM aside of the vi marker

Comment thread src/bridge.ts
}
}

// vi: et sw=4 ts=4

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like an accidental leftover

Comment thread src/bridge.ts

const tokenFromQuery = req.query.access_token;

const tokenFromHeader = req.get("authorization").substring(7); // "Bearer ".length === 7

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check for "Bearer "?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants