Reputation: 13
I'm attempting to use jdbc plus jtds to connect to SQL server and run flyway migrations. Its a requirement that the connection use integrated security. Is this supported in flyway? If I specify integratedsecurity=true
and don't specify a username and password I am prompted to enter one when I run the command line flyway migrate
suggesting that its ignoring my setting to use integrated security.
Upvotes: 1
Views: 1464
Reputation: 172
Now works out of the box -> https://documentation.red-gate.com/flyway/flyway-cli-and-api/supported-databases/sql-server
Windows Authentication
Windows Authentication, also known as Integrated Security, is enabled by amending your JDBC connection string to set integratedSecurity=true.
Syntax: jdbc:sqlserver://:;databaseName=;integratedSecurity=true.
Example: jdbc:sqlserver://server01:1234;databaseName=AdventureWorks;integratedSecurity=true.
Upvotes: 1
Reputation: 448
Flyway doesn't support it out of the box. It's a known limitation.
There is a manual workaround explained on the website.
Upvotes: 1