Skip to content

Commit

Permalink
Merge azure to one case
Browse files Browse the repository at this point in the history
  • Loading branch information
cYKatherine committed Feb 4, 2025
1 parent 8cdb394 commit 499ea63
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main/java/com/uid2/operator/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,6 @@ private Map.Entry<UidCoreClient, UidOptOutClient> createUidClients(Vertx vertx,
private AttestationResponseHandler getAttestationTokenRetriever(Vertx vertx, String attestationUrl, String clientApiToken, Handler<Pair<AttestationResponseCode, String>> responseWatcher) throws Exception {
String enclavePlatform = this.config.getString(Const.Config.EnclavePlatformProp);
String operatorType = this.config.getString(Const.Config.OperatorTypeProp, "");
String maaServerBaseUrl = this.config.getString(Const.Config.MaaServerBaseUrlProp, "https://sharedeus.eus.attest.azure.net");

IAttestationProvider attestationProvider;
switch (enclavePlatform) {
Expand All @@ -507,12 +506,9 @@ private AttestationResponseHandler getAttestationTokenRetriever(Vertx vertx, Str
LOGGER.info("creating uid core client with gcp oidc attestation protocol");
attestationProvider = AttestationFactory.getGcpOidcAttestation();
break;
case "azure-cc":
LOGGER.info("creating uid core client with azure cc attestation protocol");
attestationProvider = AttestationFactory.getAzureCCAttestation(maaServerBaseUrl);
break;
case "azure-cc-aks":
LOGGER.info("creating uid core client with azure cc aks attestation protocol");
case "azure-cc", "azure-cc-aks":
LOGGER.info("creating uid core client with" + enclavePlatform + "attestation protocol");
String maaServerBaseUrl = this.config.getString(Const.Config.MaaServerBaseUrlProp, "https://sharedeus.eus.attest.azure.net");
attestationProvider = AttestationFactory.getAzureCCAttestation(maaServerBaseUrl);
break;
default:
Expand Down

0 comments on commit 499ea63

Please sign in to comment.