documentation/Reference/Configuration/Flyway Namespace/Flyway Token Setting.md
A personal access token (PAT) to be used in conjunction with the email
configuration parameter. This is used to license Flyway to access Teams or Enterprise features.
You should treat the token like a password and it should not be stored directly in your code repository. Use of a secrets manager or environment variable are much safer solutions.
String
<i>none</i>
Not needed in conjunction with Flyway Desktop as Flyway Desktop will handle auth.
./flyway -email="[email protected]" -token="1234ABCD"
[flyway]
email = "[email protected]"
token = "1234ABCD"
[email protected]
FLYWAY_TOKEN=1234ABCD
<configuration>
<pluginConfiguration>
<email>[email protected]</email>
<token>1234ABCD</token>
</pluginConfiguration>
</configuration>
Flyway flyway = Flyway.configure().load();
flyway.getConfigurationExtension(PATTokenConfigurationExtension.class)
.setEmail("[email protected]");
flyway.getConfigurationExtension(PATTokenConfigurationExtension.class)
.setToken("1234ABCD");