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

fix: client security scheme now works with spec v3 #588

Merged
merged 10 commits into from
Dec 13, 2023

Conversation

Souvikns
Copy link
Member

Description

This PR aims to update the client security scheme to add support for working with spec v3.

Related issue(s)

Fixes #556

@Souvikns Souvikns marked this pull request as ready for review November 24, 2023 15:49
Copy link
Member

Choose a reason for hiding this comment

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

I think we should have a centtral README.md file in the root of anime-http to explain how to run this example and what it is. I see we have asyncapi.md file in the client and the server folders but I don't see any useful info there for me to get started.

KhudaDad414
KhudaDad414 previously approved these changes Dec 11, 2023
@@ -51,6 +51,11 @@ class WsClientAdapter extends Adapter {
const modedAuth = await gleeAuth.processClientAuth({ url, headers, query: {} })
headers = modedAuth.headers
url = modedAuth.url
if (modedAuth.query) {
Copy link
Member

Choose a reason for hiding this comment

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

IMO this should be handled by the auth process not in ws client. so the logic should be usable in both http and ws.

KhudaDad414
KhudaDad414 previously approved these changes Dec 12, 2023
Copy link
Member

@KhudaDad414 KhudaDad414 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

@Souvikns
Copy link
Member Author

/rtm

@asyncapi-bot asyncapi-bot merged commit 3d8e774 into asyncapi:master Dec 13, 2023
12 checks passed
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 0.32.14 🎉

The release is available on:

Your semantic-release bot 📦🚀

@coveralls
Copy link

coveralls commented Jan 14, 2024

Pull Request Test Coverage Report for Build 7181764316

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 69.597%

Files with Coverage Reduction New Missed Lines %
src/lib/util.ts 2 71.43%
Totals Coverage Status
Change from base Build 7065212993: 0.02%
Covered Lines: 374
Relevant Lines: 478

💛 - Coveralls

@coveralls
Copy link

coveralls commented Nov 30, 2024

Pull Request Test Coverage Report for Build 6982702688

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 69.534%

Files with Coverage Reduction New Missed Lines %
src/lib/util.ts 1 72.52%
Totals Coverage Status
Change from base Build 6968590952: -0.1%
Covered Lines: 368
Relevant Lines: 470

💛 - Coveralls

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

Successfully merging this pull request may close these issues.

Client security doesn't work with v3 of the spec
4 participants