Skip to content

Commit 0019e08

Browse files
committed
Add azure-cc-aks protocol
1 parent 34dbbd9 commit 0019e08

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/com/uid2/operator/Main.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ private Map.Entry<UidCoreClient, UidOptOutClient> createUidClients(Vertx vertx,
486486
private AttestationResponseHandler getAttestationTokenRetriever(Vertx vertx, String attestationUrl, String clientApiToken, Handler<Pair<AttestationResponseCode, String>> responseWatcher) throws Exception {
487487
String enclavePlatform = this.config.getString(Const.Config.EnclavePlatformProp);
488488
String operatorType = this.config.getString(Const.Config.OperatorTypeProp, "");
489+
String maaServerBaseUrl = this.config.getString(Const.Config.MaaServerBaseUrlProp, "https://sharedeus.eus.attest.azure.net");
489490

490491
IAttestationProvider attestationProvider;
491492
switch (enclavePlatform) {
@@ -508,7 +509,10 @@ private AttestationResponseHandler getAttestationTokenRetriever(Vertx vertx, Str
508509
break;
509510
case "azure-cc":
510511
LOGGER.info("creating uid core client with azure cc attestation protocol");
511-
String maaServerBaseUrl = this.config.getString(Const.Config.MaaServerBaseUrlProp, "https://sharedeus.eus.attest.azure.net");
512+
attestationProvider = AttestationFactory.getAzureCCAttestation(maaServerBaseUrl);
513+
break;
514+
case "azure-cc-aks":
515+
LOGGER.info("creating uid core client with azure cc aks attestation protocol");
512516
attestationProvider = AttestationFactory.getAzureCCAttestation(maaServerBaseUrl);
513517
break;
514518
default:

0 commit comments

Comments
 (0)