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

refactor: Use common config with express app.set / app.get #142

Merged
merged 1 commit into from
May 19, 2022

Conversation

merlinc
Copy link
Contributor

@merlinc merlinc commented May 19, 2022

Proposed changes

What changed

This is a bit of a big PR, but it is doing one thing - refactoring common code to use properties set via express app.set('propertyname','propertyvalue').

The code to do set these properties can be invoked during server creation, as per settings.js.

At this point, all the code in /app/oauth can be moved into a common area. All the code in lib, except for config and settings can also be moved over. These two files will be different for each credential issuer.

Missing tests have also been added.

Any thoughts on naming are welcome.

Why did it change

Issue tracking

Checklists

Environment variables or secrets

  • No environment variables or secrets were added or changed
  • Documented in the README
  • Added to deployment repository
  • Added to local startup repository

Other considerations

  • Update README with any new instructions or tasks

@merlinc merlinc requested a review from a team as a code owner May 19, 2022 16:08
@sonarcloud
Copy link

sonarcloud bot commented May 19, 2022

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

76.0% 76.0% Coverage
0.0% 0.0% Duplication

@merlinc merlinc merged commit 79b403d into main May 19, 2022
@merlinc merlinc deleted the KBV-397/set-config-as-appvars branch May 19, 2022 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants