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(component): make client password and bearer strategy as mandatory #210

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

sf-sahil-jassal
Copy link
Contributor

@sf-sahil-jassal sf-sahil-jassal commented Jan 12, 2024

make bearer strategy non optional,
resulting client password strategy also not optional

GH-209

Description

Making the bearer strategy mandatory. But, by only making the bearer as manadatory, failed in test cases. Seems like, client password strategy is also needed for the same (infact all strategies as client is always needs to be authenticated first). So, I also made client password strategy as mandatory.

Fixes #209

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Intermediate change (work in progress)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist:

  • Performed a self-review of my own code
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Any dependent changes have been merged and published in downstream modules

@sf-sahil-jassal sf-sahil-jassal changed the title refactor(component): make bearer strategy non optional refactor(component): make bearer strategy mandatory Jan 12, 2024
@sf-sahil-jassal sf-sahil-jassal changed the title refactor(component): make bearer strategy mandatory fix(component): make client password and bearer strategy as mandatory Jan 12, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

"./passport-bearer": {
"type": "./dist/strategies/passport/passport-bearer/index.d.ts",
"default": "./dist/strategies/passport/passport-bearer/index.js"
},
"./passport-client-password": {
"type": "./dist/strategies/passport/passport-client-password/index.d.ts",
"default": "./dist/strategies/passport/passport-client-password/index.js"

not needed should be directly exported from the package

make client password strategy mandatory as it needs to be
for any authentication by any strategy.

Also, make bearer stratgey mandatory as everybody use it

GH-209
Copy link

sonarcloud bot commented Jan 15, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@yeshamavani yeshamavani merged commit 13e052e into master Jan 17, 2024
3 checks passed
@yeshamavani yeshamavani deleted the GH-209 branch January 17, 2024 14:28
@yeshamavani
Copy link
Contributor

🎉 This PR is included in version 11.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Make the bearer-strategy mandatory
2 participants