Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🟢 feat: Add bearer token support #6934

Merged
merged 2 commits into from
Apr 25, 2024
Merged

Conversation

gastonfournier
Copy link
Contributor

About the changes

Removes the bearer token middleware flag for GA

Copy link

vercel bot commented Apr 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 25, 2024 2:07pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Apr 25, 2024 2:07pm

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Improving Code Health: 1 findings(s) ✅

View detailed results in CodeScene

@@ -64,14 +59,9 @@ describe('bearerTokenMiddleware', () => {
expect(req.headers.authorization).toBe(exampleSignalToken);
});

it('should always run for signal endpoint, regardless of the flag', () => {

Choose a reason for hiding this comment

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

ℹ Getting worse: Code Duplication
introduced similar code in: 'should always run for signal endpoint, regardless of the flag, with base path','should always run for signal endpoint, without base path'

@@ -16,11 +16,6 @@ describe('bearerTokenMiddleware', () => {
beforeEach(() => {
config = createTestConfig({
getLogger,
experimental: {

Choose a reason for hiding this comment

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

✅ Getting better: Code Duplication
reduced similar code in: 'should always run for signal endpoint, regardless of the flag','should always run for signal endpoint, regardless of the flag, supporting instance path'

Copy link
Contributor

@chriswk chriswk left a comment

Choose a reason for hiding this comment

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

LGTM

@gastonfournier gastonfournier enabled auto-merge (squash) April 25, 2024 13:57
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Improving Code Health: 1 findings(s) ✅

View detailed results in CodeScene

@gastonfournier gastonfournier merged commit 2400ffc into main Apr 25, 2024
5 of 7 checks passed
@gastonfournier gastonfournier deleted the remove-bearer-token-flag branch April 25, 2024 14:01
@ivarconr ivarconr changed the title feat: remove bearer token middleware flag 🟢 feat: Add bearer token support May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants