The node-red-contrib-oauth2 is a Node-RED node that provides an OAuth2 authentication flow. This node uses the OAuth2 protocol to obtain an access token, which can be used to make authenticated API requests.
This commit introduces a new feature to the OAuth2 configuration that allows users to force a token refresh. This can be particularly useful when there are changes in scopes or permissions, or when
authentication issues are encountered.
Changes include:
Added a new checkbox in the OAuth2 HTML configuration for the 'Force Token Refresh' option.
Updated the OAuth2 JSON locale files to include descriptions and labels for the new 'force' option.
Modified the OAuth2 JavaScript to handle the 'force' configuration, ensuring that a new access token is generated when this option is enabled, regardless of the current token's validity.
Improved the handling of the OAuth2 response and headers in the message object.
Refactored the shouldBypassProxy function for clarity.
Streamlined the success page HTML response for the OAuth2 callback endpoint.
The new 'force' option is now available in the node configuration UI, and users can enable it to ensure that a fresh access token is always used.
This commit introduces a new feature to the OAuth2 configuration that allows users to force a token refresh. This can be particularly useful when there are changes in scopes or permissions, or when authentication issues are encountered.
Changes include:
shouldBypassProxy
function for clarity.Streamlined the success page HTML response for the OAuth2 callback endpoint.
The new 'force' option is now available in the node configuration UI, and users can enable it to ensure that a fresh access token is always used.