feat: Saas redirect for Langflow and logout#1293
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds support for deriving the correct Langflow URL in IBM SaaS environments and updates the authentication and logout logic accordingly. The changes ensure that users in IBM auth mode are directed to the correct Langflow instance and that logout behavior is consistent with authentication modes.
IBM SaaS Langflow URL derivation:
deriveCloudLangflowUrlinurl-utils.tsto generate the appropriate Langflow URL for IBM SaaS deployments by transforming the current OpenRAG URL.settings/page.tsxto usederiveCloudLangflowUrlwhen in IBM auth mode, ensuring the correct Langflow URL is used in the UI. [1] [2]Authentication logic updates:
useAuthhook insettings/page.tsxto includeisIbmAuthMode, enabling conditional logic based on IBM authentication.logoutfunction inauth-context.tsxto allow logout only when not in no-auth mode, removing the IBM auth mode restriction for consistency.