I'm doing a Udemy course about ASP.NET MVC 5. I just finished a section about social plugins.
In the course repo I see this code: Startup.Auth.cs
My question is now, how did he get "12345" and "abcde" in his repo without breaking the code?
Thomas
I'm doing a Udemy course about ASP.NET MVC 5. I just finished a section about social plugins.
In the course repo I see this code: Startup.Auth.cs
My question is now, how did he get "12345" and "abcde" in his repo without breaking the code?
Thomas
Once you commit it, it's no longer a secret.
The usual course of action in those cases is to commit some fictional value, as a placeholder to some secret piece of data. He intentionally changed the real value to a sample, so he can commit the code and not disclose his key.
Upon checkout, you should change those values to the real ones (presumably known only to you) to test the code. When run directly, that's likely to fail for using bad credentials.