Share via

How to store client credentials?

Keith Viking 20 Reputation points
2023-05-31T12:12:50.1066667+00:00

I am creating a WebAPI (Core/ .Net 6).

When creating the Registration for the app i add some client credentials. I noticed once i have them i cant view one half of the credentials again.

I did a test by making a call to ..{tenant_id}/oauth2/v2.0/token and passing in the client_id and secret (along with other params) i was able to make a successful call.

I feel in future i may not remember to store the client credentials or i may need to pass them over to the same organisation for whatever reason.

Is there a way to tackle this type of scenario? I did read on Azure Key Vault but the demos only showed how it protected VMs or databases.

Azure Key Vault
Azure Key Vault

An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Developer technologies | ASP.NET Core | Other

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.