I have followed Microsoft's instructions on setting up a Microsoft external login for ASP.Net Core, but I have directly pasted my Client Id and Client Secret in my code's Startup.cs. All works fine, but I am concerned about security. Is this bad practice / not recommended? Or should I definitely use Secret Manager and reference them from there?
Is it mandatory to use Secret Manager for storing Microsoft External logIn ClientId and ClientSecret
71 Views Asked by pnizzle At
1
There are 1 best solutions below
Related Questions in AUTHENTICATION
- Access roles from multiple applications
- Different storyboard's entry points depending on a parameter
- SoundCloud Authentication Consistently Returns 401 invalid_grant For Some Users
- sendxmpp not authorized failure (Error AuthSend)
- Retrieve user information from Active Directory on login
- Log in through active directory
- Ember.js REST Auth Headers
- Validate Deezer access token on server
- Why does IIS Anonymous Authentication turn on by itself after I publish my project to server?
- Laravel - session data survives log-out/log-in, even for different users
- How can I share Azure Active Directory authentication between server side and client script?
- django rest framework - token authentication logout
- NameValuePair, HttpParams, HttpConnection Params deprecated on server request class for login app
- How to delete user from _User through Parse REST API
- Cannot login with new SQL User - SQL 2014
Related Questions in ASP.NET-CORE
- ASP.NET 5 Class Library - Nuget package Web.Config transform
- Asp.Net 5 correct way to access logging config file from Startup.cs
- What is the difference between 'dependencies' and 'frameworkAssemblies' in project.json?
- Getting absolute URLs using ASP.NET Core
- How to add Project Reference in asp.net 5 application
- Configure the authorization server endpoint
- Observer for fire&forget Task
- IApplicationBuilder exists in both Microsoft.AspNet.Http.Abstractions and Microsoft.AspNet.Http
- What frameworks are available in ASP.NET Core (ASP.NET 5) applications?
- How do I include 'System.Runtime.Serialization.Json' namespace in my VSCode project on Mac OS X?
- How to suppress warnings when building an ASP.NET 5 project?
- Dependency Injection in asp.net 5 custom classes, what is the correct way?
- How to access IConfiguration property from Controller in ASP.NET 5
- Getting a scoped component from a IDocumentStoreListener
- How is execution passed from the clr to Startup class (startup.cs)?
Related Questions in SECRET-MANAGER
- Are there any negative side effects to using the same UserSecretsId for multiple projects?
- Django + APP ENGINE (GAE) - No local .env or GOOGLE_CLOUD_PROJECT detected. No secrets found
- AWS Glue with SecretManager for database credentials
- How to call secret manager from lambda function
- An error occurred (LimitExceededException) when calling the UpdateSecret operation: You exceeded the maximum number of versions for a secret
- unit testing AWS secret manager java
- Selecting an RDS DB for newly created secrets in AWS CLI
- How to use custom substitutions with secretmanager in cloudbuild?
- Caching secrets in lambda@edge
- Secret Manager vs Environment Variables
- Terraform 'aws_secretsmanager_secret' pass arn error: Invalid template interpolation value
- Is it mandatory to use Secret Manager for storing Microsoft External logIn ClientId and ClientSecret
- Could not find a part of the path .nuget\packages\.tools\Microsoft.Extensions.SecretManager.Tools
- Convox Environment for secret management-evaluation
- Getting error Secret version <GUID> has no stage for rotation of secret while rotating secret in AWS Secret Manager from lambda function
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I have researched and found the answer here: source
No, it is not mandatory but rather
strongly recommendedfor security purposes.Microsoft suggests to
Never store passwords or other sensitive data in source code, which is common sense, but this resource as a whole incorporates client id's and secrets.Also, the resource mentions Secret Manager to be used for
Development purposes only. Storage of the Microsoft App Id (Client Id) and secrets for Production use can be done in Azure Key Vault (development too if you wish).