Forum Discussion
App secret (application secret) Azure AD - Azure AD App Secrets
- 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.
- Search for and select Azure Active Directory.
- Select App registrations and select your application from the list.
- Select Certificates & secrets.
- Select Client secrets, and then Select New client secret.
- Provide a description of the secret, and a duration.
- 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.
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.
- Search for and select Azure Active Directory.
- Select App registrations and select your application from the list.
- Select Certificates & secrets.
- Select Client secrets, and then Select New client secret.
- Provide a description of the secret, and a duration.
- 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.
- ayoub92635Mar 23, 2023Copper Contributor
Many thanks for your reply ! Is there a specific recommendation for The secret app lifetime (duration : 1 month ...example)??
what is the benefit of using manger identity azure for the secret app ?How do you scan for secret apps? how to find secret apps by scan?
- ayoub92635Mar 23, 2023Copper ContributorWhy it is recommend using a certificate, (authentication with certificate) ? and non app secret
- jr-routNov 03, 2024Copper Contributor
What is the best place to store the secret coming out of application registration - when it comes to at the time of initial start of the application ?eliekarkafy