Skip to content

Commit

Permalink
IM-280 Add single key credential schema
Browse files Browse the repository at this point in the history
  • Loading branch information
inigo-cobian committed Feb 7, 2024
1 parent dcf0b2c commit 41a012f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ public class ExternalAuthenticationCredentials {
public static final Map<String, String[]> parameterKeys;

static {

parameterKeys = new HashMap<>();
parameterKeys.put("basic", new String[]{"username", "password"});
parameterKeys.put("oidc", new String[]{"url", "grant_type", "client_id", "client_secrets", "scope", "provider_id"});
parameterKeys.put("s3", new String[]{"accessKey", "secretKey"});
parameterKeys.put("key", new String[]{"key"});
}

/**
Expand All @@ -26,11 +26,12 @@ public class ExternalAuthenticationCredentials {
* for basic: username and password
* for oidc: Authentication URL, grant type, client ID, client secret, scope, provider
* for s3: endpoint URL, access key, secret key
* for key: a single key
*/
private List<String> credentials = new ArrayList<>();

/**
* one of basic, oidc, s3...
* one of basic, oidc, s3, key...
*/
private String scheme = "basic";

Expand Down

0 comments on commit 41a012f

Please sign in to comment.