What is a client secret?

Kylee Kasper 20 Reputation points
2024-10-29T18:01:46.14+00:00

I would like to register my app with Entra ID but got caught up on the client ID? Is this simply a string of text/ numbers that I make up? Or is it something that Microsoft provides for me?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Harshitha Eligeti 4,380 Reputation points Microsoft External Staff Moderator
    2024-11-06T21:29:30.4233333+00:00

    Hi @ Kylee Kasper • 
    Thank you for sharing your issue on Microsoft Q&A. 

    In addition to the information provided by Andy David - MVP
    A client secret is a secret known only to your application and the authorization server. It is used to authenticate your application to the authorization server when your application requests an access token. Regarding your question about registering your app with Entra ID, the App ID (client ID) will be created automatically. If you need to add a client secret, it is optional and only needed if your OAuth app will use it to authenticate to Azure.    If your app uses public authentication methods, you may not need a client secret. The app can authenticate users without needing to include a client secret in requests, which is a best practice for security. 

    Feel free to reach out if you need further assistance.   

    Best Regards. 
    Harshitha Eligeti. 

     

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Andy David - MVP 157.8K Reputation points MVP Volunteer Moderator
    2024-10-29T18:12:12.6166667+00:00

    Are you following this?

    The App ID (client ID) will be created automatically.

    https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app?tabs=certificate

    IF you mean the client secret and ID, you can generate following:

    https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app?tabs=client-secret#add-credentials

    add a secret


Your answer

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