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

Enable inserting custom URL using basic auth #1262

Merged
merged 3 commits into from
Nov 21, 2023

Conversation

tirongi
Copy link
Contributor

@tirongi tirongi commented Nov 21, 2023

In the credential nodeId can be inserted a custom server URL and the basic auth will be used.

@@ -15,7 +15,7 @@ class ElasticSearchUserPassword implements INodeCredential {
'Refer to <a target="_blank" href="https://www.elastic.co/guide/en/kibana/current/tutorial-secure-access-to-kibana.html">official guide</a> on how to get User Password from ElasticSearch'
this.inputs = [
{
label: 'Cloud ID',
label: 'Cloud ID or custom server URL',
name: 'cloudId',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a description to explain how to get Cloud ID OR what is custom server URL? Better if it has link to docs like here

username: username,
password: password
if (cloudId.startsWith('http')) {
let username = getCredentialParam('username', credentialData, nodeData)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these 2 lines are redundant as its already declared above

@tirongi
Copy link
Contributor Author

tirongi commented Nov 21, 2023

Thanks for your suggestions.
I just added the explanation, you can use an Elastic Cloud ID or put the URL address to the Elastic server instance in which the index is stored.
Based on the given string the client will be configured with the right auth settings.
See: Elastic guide

Copy link
Contributor

@HenryHengZJ HenryHengZJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @tirongi !

@HenryHengZJ HenryHengZJ merged commit 8806079 into FlowiseAI:main Nov 21, 2023
2 checks passed
@tirongi tirongi deleted the feature/elasticCustomURLBasicAuth branch November 22, 2023 09:37
hemati pushed a commit to hemati/Flowise that referenced this pull request Dec 27, 2023
…RLBasicAuth

Enable inserting custom URL  using basic auth
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