• /r/csharp
  • C# (Setting limitations?)

    Hey. How do I make so that I can’t write numbers in “inputname” and letters in “inputage” ConsoleApp { { Console.Write(“Your Name: “); string inputname = Console.ReadLine(); if inputname = (1, 2, 3, 4, 5, 6, 7, 8, 9, 0); string Console.Write(“Your Name: “) return 0; Console.Write(“Your Age: “); string inputage = Console.ReadLine(); if (inputage […]

  • /r/csharp
  • Can anyone point me to a tutorial that shows me how to do API authentication by API keys and browser tokens with IdentityServer please.

    I’m trying to write an API in .net core that will allow for users who will connect directly to the API using a API key and will also support users from a website that sign on with username/password who will receive a browser token. I’m looking at IdentityServer 4 but will use whichever is recommended. […]