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

Requires allowClearTextPassword set to true?? #71

Closed
mprogers opened this issue Nov 7, 2022 · 3 comments
Closed

Requires allowClearTextPassword set to true?? #71

mprogers opened this issue Nov 7, 2022 · 3 comments

Comments

@mprogers
Copy link

mprogers commented Nov 7, 2022

This only seems to work if I set allowClearTextPassword to true - otherwise I get this error message -- type 3 connections disabled. Set AllowClearTextPassword flag on PostgreSQLConnection to enable this feature.

I can't really, in 2022, send clear text anything. Any ideas?

databaseConnection = PostgreSQLConnection(widget.databaseHost, widget.databasePort, widget.databaseName,
    queryTimeoutInSeconds: 3600,
    timeoutInSeconds: 3600,
    username: widget.userName,
    password: widget.password,
    useSSL: true,
    allowClearTextPassword: true);

}

@isoos
Copy link
Owner

isoos commented Nov 7, 2022

@mprogers: are you using a local postgres instance, or a hosted one?

@mprogers
Copy link
Author

mprogers commented Nov 7, 2022 via email

@isoos
Copy link
Owner

isoos commented Nov 7, 2022

#20 was created to connect to a hosted azure instance. I'd assume that with requireSsl the connection is using SSL, and while the password itself is cleartext, it is encrypted over the network, but I have zero experience with it. I'm happy to review and accept PRs if you think you can improve the current code.

@isoos isoos closed this as completed Nov 7, 2022
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

No branches or pull requests

2 participants