Skip to content

Trex fixes#1

Merged
KangJingA merged 2 commits into
developfrom
trex-fixes
Oct 15, 2024
Merged

Trex fixes#1
KangJingA merged 2 commits into
developfrom
trex-fixes

Conversation

@KangJingA

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread core/server/auth/authn.ts
if (
c.req.header("authorization") &&
c.req.header("authorization")?.split(" ")[0] === "Bearer"
c.req.header("authorization")?.split(" ")[0].match(regex)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

prefect-ui-library sends api requests with a lower case bearer

}
if(value.scopes) {
global.REQUIRED_URL_SCOPES = global.REQUIRED_URL_SCOPES.concat(value.scopes).filter((v, i, self) => self.map(x => x["path"]).lastIndexOf(v["path"]) == i);
global.REQUIRED_URL_SCOPES = global.REQUIRED_URL_SCOPES.concat(value.scopes)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removing this so that endpoints with same path but different http methods will not be overwritten

@KangJingA KangJingA merged commit c3d0c50 into develop Oct 15, 2024
@KangJingA KangJingA deleted the trex-fixes branch October 15, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants