Skip to content
Snippets Groups Projects
Commit 0b91a747 authored by Andrew Case's avatar Andrew Case
Browse files

Updated token name

parent c24b8e7c
No related branches found
No related tags found
1 merge request!864Acceptance test new module
Pipeline #308552 passed
......@@ -28,9 +28,9 @@ Authentication can be provided as OIDC config:
| `ELASTIC_PORT` | ex `9243` | Port Elasticsearch | yes | output of infrastructure deployment |
Or tokens can be used directly from env variables:
| name | value | description | sensitive? | source |
|-------------------|------------|-----------------------|------------|--------|
| `PRIVILEGED_USER` | `********` | PRIVILEGED_USER Token | yes | - |
| name | value | description | sensitive? | source |
|-------------------------|------------|-----------------------|------------|--------|
| `PRIVILEGED_USER_TOKEN` | `********` | PRIVILEGED_USER Token | yes | - |
#### Entitlements configuration for Integration Accounts
......
......@@ -25,12 +25,12 @@ import lombok.extern.java.Log;
@ToString
public class AnthosHTTPClient extends HTTPClient {
public static final String INTEGRATION_TESTER_TOKEN = "ROOT_USER_TOKEN";
public static final String PRIVILEGED_USER_TOKEN = "ROOT_USER_TOKEN";
private static String token = null;
private static OpenIDTokenProvider openIDTokenProvider;
public AnthosHTTPClient() {
token = System.getProperty(INTEGRATION_TESTER_TOKEN, System.getenv(INTEGRATION_TESTER_TOKEN));
token = System.getProperty(PRIVILEGED_USER_TOKEN, System.getenv(PRIVILEGED_USER_TOKEN));
if (Strings.isNullOrEmpty(token)) {
openIDTokenProvider = new OpenIDTokenProvider();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment