Skip to content

Client Credentials

Bogdan Gavril edited this page Jul 23, 2025 · 6 revisions

What are client credentials

Credentials enable confidential applications to identify themselves to the authentication service when receiving tokens. These are configurable in the "Certificates & Secrets" section of the Entra Application Registration in the Azure Portal.

These are not the same as user credentials (i.e. user passwords), which are known to users.

Entra supports 3 types of credentials

  • secrets
  • certificates
  • federated credentials
Credential Type What Is It When to Use Advantages Considerations
Secret
Simple shared secret string • Development/testing
• Basic security requirements
• Simple to use
• Easy to configure
Not for production:
• Less secure
• No auto-rotation
• Easy to expose
Certificate
Certificate in Windows Certificate Store Applications not hosted on Azure • More secure than secrets • Only the public key is exposed Certificate rotation can be cumbersome
Federated Credentials
Credentials issued by another provider For federation with other Identity Providers (e.g. GitHub) or federation with Azure Managed Identity • Eliminates the need to an extra credential
• When federating with Managed Identity, 0 credential setup
Ideal for apps hosted on Azure

The preferred credential to use in production is Federated Credential with Managed Identity.

Getting started with Microsoft Identity Web

Token cache serialization

Web apps

Web APIs

Daemon scenario

Advanced topics

Extensibility

Credential providers

FAQ

News

Contribute

Other resources

Clone this wiki locally