ref 19186: DMPoolManager - Use the dataminer user to send emails.
https://support.d4science.org/issues/19186 Added application token
This commit is contained in:
parent
80ef562833
commit
fa1ad83006
|
@ -109,7 +109,7 @@ public class SendMail ***REMOVED***
|
|||
|
||||
private String retrieveApplicationToken() throws EMailException ***REMOVED***
|
||||
try ***REMOVED***
|
||||
|
||||
logger.info("Retrieve Application Token");
|
||||
SimpleQuery query = queryFor(ServiceEndpoint.class);
|
||||
query.addCondition(DMPOOLMANAGER_SERVICE_QUERY_CONDITION);
|
||||
DiscoveryClient<ServiceEndpoint> client = clientFor(ServiceEndpoint.class);
|
||||
|
@ -130,6 +130,7 @@ public class SendMail ***REMOVED***
|
|||
Property p = iteratorProps.next();
|
||||
String applicationToken = StringEncrypter.getEncrypter().decrypt(p.value());
|
||||
logger.debug("Application token found: " + applicationToken);
|
||||
logger.info("Application Token retrieved");
|
||||
return applicationToken;
|
||||
|
||||
***REMOVED*** else ***REMOVED***
|
||||
|
|
Loading…
Reference in New Issue