What is a client secret?

Kylee Kasper 0 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 Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,093 questions
0 comments No comments
{count} votes

2 answers

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

    Are you following this?

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

    https://video2.skills-academy.com/en-us/entra/identity-platform/quickstart-register-app?tabs=certificate

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

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

    add a secret


  2. Harshitha Eligeti 315 Reputation points Microsoft Vendor
    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. 

     


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.