# Example of retrieving a token using an Entra App with a Cert

**URL:** <https://community.postman.com/t/example-of-retrieving-a-token-using-an-entra-app-with-a-cert/69750>\
**Category:** Help Hub\
**Tags:** azure\
**Created:** [October 15, 2024, 8:18pm UTC](https://community.postman.com/t/example-of-retrieving-a-token-using-an-entra-app-with-a-cert/69750 "2024-10-15T20:18:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![foxdeploy](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/foxdeploy/32/30423_2.png) [@foxdeploy](https://community.postman.com/u/foxdeploy)\
**Post date:** [October 15, 2024, 8:18pm UTC](https://community.postman.com/t/example-of-retrieving-a-token-using-an-entra-app-with-a-cert/69750/1 "2024-10-15T20:18:20Z")

</div>

Hi!

Many Authentication providers are no longer allowing Apps to register with a client Secret. Well, specifically I found I could not create an App with a client secret in Microsoft Azure Entra (Previously Azure AD).

This really complicates the login and token retrieval process.

For instance, previously I had a collection in Postman for all of my Azure related things and I configured ‘Authorization’ for the whole collection with ‘OAuth Type’.

This called for me filling out the client ID and client Secret fields…which are not possible if your OAuth app only has a certificate.

Does anyone have a working example of how to Authenticate when your app only has a certificate registered in Azure AD?

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [October 16, 2024, 5:14pm UTC](https://community.postman.com/t/example-of-retrieving-a-token-using-an-entra-app-with-a-cert/69750/2 "2024-10-16T17:14:30Z")

</div>

What grant type are you using and can you share a screenshot of the Azure app registration screen?

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [October 17, 2024, 1:46pm UTC](https://community.postman.com/t/example-of-retrieving-a-token-using-an-entra-app-with-a-cert/69750/3 "2024-10-17T13:46:53Z")

</div>

I’ve just been looking at the Microsoft docs (as I had to look something else up for myself).

Looking at the Client Credentials flow, but it could apply to other grant types.

[OAuth 2.0 client credentials flow on the Microsoft identity platform - Microsoft identity platform | Microsoft Learn](https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow)

Microsoft now support an “[access token request with a certificate](https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow#second-case-access-token-request-with-a-certificate)”.

The main difference being that the `client_secret` parameter is replaced by the `client_assertion_type` and `client_assertion` parameters.

Looking through the Postman Authorization helpers, I’m not sure they support this type of flow yet.

This sounds like its related to this topic.

[AuthType OAuth2.0 Client Secret is always required - 🙋 Help - Postman Community](https://community.postman.com/t/authtype-oauth2-0-client-secret-is-always-required/69721)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [November 16, 2024, 1:47pm UTC](https://community.postman.com/t/example-of-retrieving-a-token-using-an-entra-app-with-a-cert/69750/4 "2024-11-16T13:47:34Z")

</div>

Closed on November 16, 2024, 1:47pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
