Skip to content

Commit

Permalink
Add more informations to credentials binding
Browse files Browse the repository at this point in the history
* hostname
* name
* username
* password
  • Loading branch information
sii-ggrebert committed Jul 13, 2021
1 parent 3f9b350 commit dcaf847
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ public String getServerAddresses() {
public Map<String, Object> getCredentialsMap(String database, String username, String password) {

Map<String, Object> credentials = new HashMap<>();
credentials.put("name", (Object) database);
credentials.put("username", (Object) username);
credentials.put("password", (Object) password);
credentials.put("hostname", (Object) this.getServerAddresses());

if (hamode == false){
credentials.put("uri", (Object) this.getConnectionString(database, username, password));
}else{
Expand Down

0 comments on commit dcaf847

Please sign in to comment.