forked from flyway/flyway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into clickhouse-support
# Conflicts: # flyway-community-db-support/pom.xml # flyway-community-db-support/src/main/resources/META-INF/services/org.flywaydb.core.extensibility.Plugin
- Loading branch information
Showing
557 changed files
with
8,304 additions
and
4,185 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,8 +32,6 @@ jobs: | |
- macOS-latest | ||
- windows-latest | ||
java: | ||
- 8 | ||
- 11 | ||
- 17 | ||
fail-fast: false | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,8 +32,6 @@ jobs: | |
- macOS-latest | ||
- windows-latest | ||
java: | ||
- 8 | ||
- 11 | ||
- 17 | ||
|
||
permissions: | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
subtitle: Auth | ||
--- | ||
# Auth | ||
|
||
`auth` initiates an online or offline license acquisition flow that can be used instead of the legacy [license key](Configuration/Parameters/Flyway/License Key) workflow. | ||
|
||
If `auth` is run on a machine that is connected to the internet with an accessible browser, Flyway will launch a web browser prompting the user to log in with their Redgate account | ||
username and password. Please note that `auth` is not supported on WSL, nor when using SSH. For these cases and any where a web browser is inaccessible on the same machine that is | ||
running Flyway, it is recommended to use environment variables (described below) to authorize Flyway. | ||
|
||
Upon successful login, a license permit is then saved to disk in the `Flyway CLI` directory of the Redgate app data folder. If the user is offline, a | ||
[link to create a license permit](https://permits.red-gate.com/offline?productCode=64&constraint=asdf) will be printed to the console. The user can then copy the license permit | ||
from that site and paste it into the console to authorize Flyway. | ||
|
||
#### App Data Folder Locations | ||
|
||
###### Windows | ||
|
||
You can find the `Flyway CLI` directory here: `%APPDATA%\Redgate\Flyway CLI`. | ||
|
||
###### MacOS & Linux | ||
|
||
You can find the `Flyway CLI` directory here: `~/.config/Redgate/Flyway CLI`. | ||
|
||
#### Flags: | ||
|
||
| Parameter | Edition | Description | ||
|------------------|--------------------| ----------------------------------------------------- | ||
| -IAgreeToTheEula | All | Mandatory for `auth` to run | ||
| -logout | All | Logs a user out of their authorized session of Flyway | ||
|
||
|
||
#### Environment Variables | ||
|
||
Users can specify license permits using environment variables that Flyway recognizes without needing to run the `auth` command: | ||
|
||
- `REDGATE_LICENSING_PERMIT_PATH`: Specifies a custom path to a license permit file. Users can save a license permit in a text file to an arbitrary location on disk and use this | ||
environment variable to point Flyway to the full path of the license permit file in order to authorize Flyway. | ||
- `REDGATE_LICENSING_PERMIT`: Specifies a license permit as a string. Users can save a license permit as raw text as a value to this environment variable to authorize Flyway. | ||
|
||
#### Authorization Precedence | ||
|
||
There are multiple ways to authorize Flyway. The following list shows the order of precedence for authorization: | ||
|
||
1. `REDGATE_LICENSING_PERMIT_PATH` environment variable | ||
2. `REDGATE_LICENSING_PERMIT` environment variable | ||
3. License permit located in the `Flyway CLI` directory of the Redgate app data folder, saved to disk by running the `auth` command (both the online and offline flow save the | ||
license permit to the same location) | ||
4. [License key](Configuration/Parameters/License Key) | ||
|
||
#### Refresh Tokens | ||
|
||
When `auth` is run successfully, an refresh token is saved to disk in the `Flyway CLI` directory of the Redgate app data folder. This refresh token is used to | ||
automatically refresh a user's license permit when it expires. Each time a license permit is refreshed, a new refresh token is saved to disk, replacing the existing | ||
refresh token. This only applies to expired license permits in the `Flyway CLI` directory of the Redgate app data folder—Flyway will not automatically refresh expired license | ||
permits specified by environment variables. | ||
|
||
#### Logout | ||
|
||
`auth -logout` can be run to log out of an authorized session of Flyway. Under the hood, logging out simply deletes the license permit and refresh token stored on disk in the | ||
Redgate app data folder. Assuming no other methods of authorization are is use (such as a permit environment variable or legacy license key environment variable), the user will be | ||
logged out of their session and Flyway will run as Community Edition. If a valid permit environment variable or legacy license key environment variable is set, Flyway will still | ||
honor these as authorizations and logout will not remove them. |
This file contains 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
Oops, something went wrong.