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

Feature/openid client config node v20 22 #10

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

abroa01
Copy link
Collaborator

@abroa01 abroa01 commented Nov 21, 2024

  • Created the openid version of the webchart-oauth-example.
  • Made a video showing the flow of the application and uploaded on YouTube https://youtu.be/jqhS8GgddO4
  • changed the package.json file to
    • handle both commonJS as well as ES modules
    • change the start and test script to handle and give user an option to run either the default app (webchart-oauth-example.js i.e., that uses simple Oauth) or OpenID app (webchart-example_openid.mjs i.e., that uses new Openid code)
  • created another puppeteer-test_openid.js to test the webchart-example_openid.mjs
  • Removed the v18.x from the node-version arrays in the GitHub workflows ( Check the issue raised here. -
    Fixing the crypto library issue in version v18.x from the GitHub workflow  #9

wreiske and others added 21 commits October 8, 2024 11:43
- Replaced `var` with `const` and `let` for proper variable scoping.
- Switched to ES6 module syntax and used destructuring in imports.
- Simplified control flow by using early returns instead of `else if` chains.
- Wrapped server logic in `try-catch` blocks to handle unexpected errors.
- Added JSDoc comments to document functions and enhance readability.
- Utilized the `URL` module for reliable URL parsing instead of string manipulation.
- Improved logging consistency using `console.error` for errors and `console.log` for standard logs.
Updated the client id and hardcoded it
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.

Make a version that uses .well-known/openid-configuration
2 participants