Skip to content

Commit

Permalink
Revert "Adding RBAC support for provisioning SDK (#2262)" (#2289)
Browse files Browse the repository at this point in the history
This reverts commit 7a26eda.
  • Loading branch information
azabbasi authored Jan 26, 2022
1 parent f114662 commit 5e522cd
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 298 deletions.
27 changes: 0 additions & 27 deletions provisioning/service/src/Auth/ProvisioningSasCredential.cs

This file was deleted.

43 changes: 0 additions & 43 deletions provisioning/service/src/Auth/ProvisioningTokenCredential.cs

This file was deleted.

21 changes: 0 additions & 21 deletions provisioning/service/src/Auth/TokenHelper.cs

This file was deleted.

5 changes: 2 additions & 3 deletions provisioning/service/src/Manager/EnrollmentGroupManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ await contractApiHttp.RequestAsync(
}

internal static Query CreateQuery(
string hostName,
IAuthorizationHeaderProvider headerProvider,
ServiceConnectionString provisioningConnectionString,
QuerySpecification querySpecification,
HttpTransportSettings httpTransportSettings,
CancellationToken cancellationToken,
Expand All @@ -129,7 +128,7 @@ internal static Query CreateQuery(

/* SRS_ENROLLMENT_GROUP_MANAGER_28_015: [The CreateQuery shall return a new Query for EnrollmentGroup.] */

return new Query(hostName, headerProvider, ServiceName, querySpecification, httpTransportSettings, pageSize, cancellationToken);
return new Query(provisioningConnectionString, ServiceName, querySpecification, httpTransportSettings, pageSize, cancellationToken);
}

private static Uri GetEnrollmentUri(string enrollmentGroupId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ await contractApiHttp.RequestAsync(
}

internal static Query CreateQuery(
string hostName,
IAuthorizationHeaderProvider headerProvider,
ServiceConnectionString provisioningConnectionString,
QuerySpecification querySpecification,
HttpTransportSettings httpTransportSettings,
CancellationToken cancellationToken,
Expand All @@ -169,7 +168,7 @@ internal static Query CreateQuery(
}

/* SRS_INDIVIDUAL_ENROLLMENT_MANAGER_21_015: [The CreateQuery shall return a new Query for IndividualEnrollments.] */
return new Query(hostName, headerProvider, ServiceName, querySpecification, httpTransportSettings, pageSize, cancellationToken);
return new Query(provisioningConnectionString, ServiceName, querySpecification, httpTransportSettings, pageSize, cancellationToken);
}

private static Uri GetEnrollmentUri(string registrationId)
Expand Down
6 changes: 2 additions & 4 deletions provisioning/service/src/Manager/RegistrationStatusManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ await contractApiHttp.RequestAsync(
[SuppressMessage("Microsoft.Design", "CA1068",
Justification = "Public API cannot change parameter order.")]
internal static Query CreateEnrollmentGroupQuery(
string hostName,
IAuthorizationHeaderProvider headerProvider,
ServiceConnectionString provisioningConnectionString,
QuerySpecification querySpecification,
HttpTransportSettings httpTransportSettings,
CancellationToken cancellationToken,
Expand All @@ -103,8 +102,7 @@ internal static Query CreateEnrollmentGroupQuery(

/* SRS_REGISTRATION_STATUS_MANAGER_28_010: [The CreateQuery shall return a new Query for DeviceRegistrationState.] */
return new Query(
hostName,
headerProvider,
provisioningConnectionString,
GetGetDeviceRegistrationStatus(enrollmentGroupId),
querySpecification,
httpTransportSettings,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Azure.Core" Version="1.9.0" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
Loading

0 comments on commit 5e522cd

Please sign in to comment.