-
New Feature
-
Resolution: Fixed
-
Minor
-
None
For environments with custom templates, e.g. an OAuth template that refers to "client" and "secret" instead of "username" and "password", the existing plugin does not seem to fetch anything.
Could the "Username" and "Password" below be parameterized?
// Extract the username and password fields from the secret Optional<String> fetchUsername = secret.getFields().stream() .filter(field -> "Username".equalsIgnoreCase(field.getFieldName())).map(Secret.Field::getValue) .findFirst(); Optional<String> fetchPassword = secret.getFields().stream() .filter(field -> "Password".equalsIgnoreCase(field.getFieldName())).map(Secret.Field::getValue) .findFirst();// code placeholder