use of com.symphony.api.authenticator.CertificateAuthenticationApi in project spring-bot by finos.
the class PodInfoStoreTokenStrategy method certBasedRequest.
@Override
protected ExtensionAppTokens certBasedRequest(String appToken, PodInfo pod) throws Exception {
ApiBuilder ab = setupApiBuilder(pod, pod.getPayload().getSessionAuthUrl());
CertificateAuthenticationApi aa = ab.getApi(CertificateAuthenticationApi.class);
ExtensionAppAuthenticateRequest ar = new ExtensionAppAuthenticateRequest();
ar.setAppToken(appToken);
ExtensionAppTokens out = aa.v1AuthenticateExtensionAppPost(ar);
return out;
}
use of com.symphony.api.authenticator.CertificateAuthenticationApi in project spring-bot by finos.
the class ConfiguredPodTokenStrategy method certBasedRequest.
protected ExtensionAppTokens certBasedRequest(String appToken, PodProperties pod) throws Exception {
ConfigurableApiBuilder ab = abf.getObject();
pod.getSessionAuth().configure(ab, new ApiWrapper[] {}, appIdentity, trustManagers);
CertificateAuthenticationApi aa = ab.getApi(CertificateAuthenticationApi.class);
ExtensionAppAuthenticateRequest ar = new ExtensionAppAuthenticateRequest();
ar.setAppToken(appToken);
ExtensionAppTokens out = aa.v1AuthenticateExtensionAppPost(ar);
return out;
}
Aggregations