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

Revised AbstractStrategy for authenticate method to match PassportStrategy expectation #861

Merged
merged 1 commit into from May 29, 2023

Conversation

algoritmodourado
Copy link
Contributor

Revised AbstractStrategy for authenticate method to match PassportStrategy expectation

Description

The previous implementation was using the RequestWithUser internal type that contradict the base PassportStrategy authenticate given that user property SHOULD NOT be required for this process.
This causes a typings issue with the base passport which overrides the express Request interface to have a user property that is of type User | undefined;

Checklist:

  • Issue Addressed: N/A
  • Link to SAML spec: N/A
  • Tests included? No, fixing a typings issue with core base package
  • Documentation updated? Not needed, seamless change

Copy link
Collaborator

@cjbarth cjbarth left a comment

Choose a reason for hiding this comment

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

Please remove updates to packages from this PR. We can do that in another PR.

@cjbarth cjbarth added the bug label May 29, 2023
@codecov
Copy link

codecov bot commented May 29, 2023

Codecov Report

Merging #861 (649aa3e) into master (2d10c9a) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #861   +/-   ##
=======================================
  Coverage   65.10%   65.10%           
=======================================
  Files           4        4           
  Lines         149      149           
  Branches       37       37           
=======================================
  Hits           97       97           
  Misses         29       29           
  Partials       23       23           
Impacted Files Coverage Δ
src/multiSamlStrategy.ts 78.78% <ø> (ø)
src/strategy.ts 59.63% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@algoritmodourado
Copy link
Contributor Author

Removed package updates and rebased against current master

@cjbarth cjbarth changed the title Fix passport-strategy authenticate prototype typings mismatch Revised AbstractStrategy for authenticate method to match PassportStrategy expectation May 29, 2023
@cjbarth cjbarth merged commit a4699b5 into node-saml:master May 29, 2023
8 checks passed
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.

None yet

3 participants