Forum Discussion

ayoub92635's avatar
ayoub92635
Copper Contributor
Mar 22, 2023

App secret (application secret) Azure AD - Azure AD App Secrets

Hello everyone,   Please , I want to know what is a "Secret App", by default what is the secret app lifetime ? What is the lifespan of App Secret ? is it recommended to use short-lived app secrets...
  • eliekarkafy's avatar
    Mar 23, 2023

    There are two types of authentication available for service principals: password-based authentication (application secret) and certificate-based authentication. We recommend using a certificate, but you can also create an application secret.

     

    Option 2: Create a new application secret

    If you choose not to use a certificate, you can create a new application secret.

    1. Search for and select Azure Active Directory.
    2. Select App registrations and select your application from the list.
    3. Select Certificates & secrets.
    4. Select Client secrets, and then Select New client secret.
    5. Provide a description of the secret, and a duration.
    6. Select Add.

    Once you've saved the client secret, the value of the client secret is displayed. Copy this value because you won't be able to retrieve the key later. You'll provide the key value with the application ID to sign in as the application. Store the key value where your application can retrieve it.

     

     

    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily.

Resources