Skip to content

Commit

Permalink
feat(technicalUser): add permission to technical user creation (#101)
Browse files Browse the repository at this point in the history
Reviewed-By: Evelyn Gurschler <[email protected]>
  • Loading branch information
Phil91 authored Sep 30, 2024
1 parent eed501a commit 403d553
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ public record ServiceKeyOperationCreationRequest(

public record ServiceKeyCreationPayloadData(
[property: JsonPropertyName("customerWalletId")] Guid CustomerWalletId,
[property: JsonPropertyName("divWalletServiceName")] string ServiceKeyName
[property: JsonPropertyName("divWalletServiceName")] string ServiceKeyName,
[property: JsonPropertyName("divWalletServiceParameters")] ServiceKeyWalletServiceParameter Parameter
);

public record ServiceKeyWalletServiceParameter(
[property: JsonPropertyName("authorities")] IEnumerable<string> Authorities
);

public record ServiceKeyOperationDeletionRequest(
Expand Down
3 changes: 2 additions & 1 deletion src/clients/Dim.Clients/Api/Div/ProvisioningClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ public async Task<Guid> CreateServiceKey(string technicalUserName, Guid walletId
"create",
new ServiceKeyCreationPayloadData(
walletId,
technicalUserName
technicalUserName,
new ServiceKeyWalletServiceParameter(["IatpOperations", "ReadCompanyIdentity", "ResolveDID"])
)
);
var client = await basicAuthTokenService
Expand Down

0 comments on commit 403d553

Please sign in to comment.