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/implicit flow support #87

Merged
merged 2 commits into from
May 21, 2024
Merged

Conversation

caputomarcos
Copy link
Owner

What is being fixed - and why?

Description of problem / issue:
Issue #79 highlights a problem with using the OAuth2 node for Google API authentication. Users are receiving an HTTP 200 response with an HTML sign-in page payload instead of the expected OAuth2 token, indicating an issue with handling the redirect to the Google sign-in page properly.

Statement of why it needs fixing:

  • Proper handling of OAuth2 redirects is crucial for seamless user authentication with Google APIs.
  • The current implementation does not accommodate the additional confirmation screen and redirect handling required by Google OAuth2.

Link to issue:

What has changed?

Summary of changes and how they resolve the issue:

Enhancements:

  • feat: enhance OAuth2 node with additional fields and implicit flow support
    • Update .eslintrc.yml to exclude console logs in test files, ensuring cleaner test outputs.
    • Modify package.json to bump version to 6.0.0 and update dependencies for improved functionality and compatibility.
    • Add new fields (access_type, response_type, prompt) to locales, HTML, and JS files, allowing more comprehensive OAuth2 configurations.
    • Implement implicit flow in OAuth2 node, with corresponding HTML form adjustments to support scenarios where the client application needs to obtain an access token directly.
    • Improve input handling and proxy configuration in OAuth2Node class to ensure better network request handling during the OAuth2 process.
    • Add tests for new fields and flows to ensure functionality and robustness.

These changes resolve the limitations and issues identified in Issue #79 by providing a more flexible and robust OAuth2 node. The enhancements allow for proper handling of the Google OAuth2 authentication flow, including the additional confirmation screen and necessary redirects. This update ensures that users can authenticate seamlessly with Google APIs, obtaining the expected OAuth2 tokens without unnecessary complications.

…pport

- Update .eslintrc.yml to exclude console logs in test files.
- Modify package.json to bump version to 6.0.0 and update dependencies.
- Add new fields (access_type, response_type, prompt) to locales, HTML, and JS files.
- Implement implicit flow in OAuth2 node, with corresponding HTML form adjustments.
- Improve input handling and proxy configuration in OAuth2Node class.
- Add tests for new fields and flows.
@caputomarcos caputomarcos merged commit c4b5357 into main May 21, 2024
1 of 2 checks passed
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.

1 participant