You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+9-6
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,11 @@ The `--galasahome` command-line flag can override the `GALASA_HOME` environment
18
18
Note: If you change this to a non-existent and/or non-initialised folder path, then
19
19
you will have to create and re-initialise the folder using the `galasactl local init` command again. That command will respect the `GALASA_HOME` variable and will create the folder and initialise it were it not to exist.
20
20
21
+
### GALASA_TOKEN
22
+
In order to authenticate with a Galasa ecosystem, you will need to create a personal access token from the Galasa web user interface.
23
+
24
+
Once a personal access token has been created, you can either store the token in the galasactl.properties file within your Galasa home folder, or set the token as an environment variable named `GALASA_TOKEN`.
25
+
21
26
22
27
## Syntax
23
28
The syntax is documented in generated documentation [here](docs/generated/galasactl.md)
@@ -95,17 +100,15 @@ If you wish the generated code to depend upon the very latest/bleeding-edge of g
95
100
96
101
Before interacting with a Galasa ecosystem using `galasactl`, you must be authenticated with it. The `auth login` command allows you to log in to an ecosystem provided by your `GALASA_BOOTSTRAP` environment variable or through the `--bootstrap` flag.
97
102
98
-
Prior to running this command, you must have a `galasactl.properties` file in your `GALASA_HOME` directory, which is automatically created when running `galasactl local init`, that contains a set of `auth` properties with the following format:
103
+
Prior to running this command, you must have a `galasactl.properties` file in your `GALASA_HOME` directory, which is automatically created when running `galasactl local init`, that contains a `GALASA_TOKEN` property with the following format:
99
104
100
105
```
101
-
GALASA_CLIENT_ID=<a client identifier>
102
-
GALASA_SECRET=<a client secret>
103
-
GALASA_ACCESS_TOKEN=<a personal access token>
106
+
GALASA_TOKEN=<your personal access token>
104
107
```
105
108
106
-
These properties can be retrieved by creating a new personal access token from a Galasa ecosystem's web user interface.
109
+
A value for the `GALASA_TOKEN` property can be retrieved by creating a new personal access token from a Galasa ecosystem's web user interface.
107
110
108
-
If you prefer, these variables can be set as environment variables instead of being read from this file.
111
+
If you prefer, this property can be set as an environment variable instead of being read from this file.
109
112
110
113
On a successful login, a `bearer-token.json` file will be created in your `GALASA_HOME` directory. This file will contain a bearer token that `galasactl` will use to authenticate requests when communicating with a Galasa ecosystem.
Copy file name to clipboardexpand all lines: docs/generated/errors-list.md
+1
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,7 @@ The `galasactl` tool can generate the following errors:
124
124
- GAL1122E: Authentication property {} is not available, which is needed to connect to the Galasa Ecosystem. It either needs to be in a file '{}' or set as an environment variable.
125
125
- GAL1123E: Failed to read 3270 terminal JSON because the content is in the wrong format. Reason: {}
126
126
- GAL1124E: Internal Failure. Terminal image could not be encoded into PNG format. Reason: {}
127
+
- GAL1125E: Authentication property {} is invalid. Please ensure that it the value is made up of two parts that are separated by a '{}'.
127
128
- GAL1225E: Failed to open file '{}' cause: {}. Check that this file exists, and that you have read permissions.
128
129
- GAL1226E: Internal failure. Contents of gzip could be read, but not decoded. New gzip reader failed: file: {} error: {}
129
130
- GAL1227E: Internal failure. Contents of gzip could not be decoded. {} error: {}
0 commit comments