Justin Dearing
Justin Dearing

Reputation: 14938

Where is the secret key stored when you add authentication at project creation time in ASP.NET 4?

Assume I create an ASP.NET Core 2.0 App in Visual Studio 2017:

ASP.NET Core project creation dialog

I can integrate with Azure Active Directory by clicking the Change Authentication dialog.

Cloud single orgationation auth dialog

Then after entering my MSDN credentials 2 or three times it will register my application with Azure Active Directory:

That creates the following snippet in appsettings.json:

"AzureAd": {
  "Instance": "https://login.microsoftonline.com/",
  "Domain": "XXXXXXXX.onmicrosoft.com",
  "TenantId": "XXXXXXXXX",
  "ClientId": "XXXXXXXXX",
  "CallbackPath": "/signin-oidc"
},

Tenant Id matches what this question said it would. And ClientId matches Azure ID. However, I don't see where this Key, that Visual Studio created during the app provisions, is stored:

Keys

Where is that stored?

Upvotes: 0

Views: 444

Answers (1)

Fei Xue
Fei Xue

Reputation: 14649

AFAIK, the template of Visual Studio does't save the secret when it create it on the Azure. If you want a secret for this app, you can delete the old one and create a new.

Please Note: Once you left that page, the secret was not able to see again.

Upvotes: 1

Related Questions