TerryDev
.NET Core & React | Authentication
https://github.com/msuddaby/ASPNetCoreJWTAuthTemplate
heres a stock template (I made) for ASP.NET Core Web API with JWT auth.
there's plenty of ways to handle auth in react, here's an example of storing / fetching auth stuff with useContext:
https://gist.github.com/msuddaby/76b7b68ba60565b82cabd7b904b4cabb
hopefully this is enough to help you get started.
17 replies
✅ Need some help converting PHP code to CS
Yup I’ve successfully written the password hashing function in C#, and verified that it’s hashing the passwords correctly. The last piece of the puzzle is converting the hash byte array to the weird string it stores in the database
35 replies
✅ Need some help converting PHP code to CS
I’ve attempted to use that, however whatever weird function drupal uses to hash it’s passwords outputs something completely different from a regular base64 conversion. Using
Convert.ToBase64
and phps built in Base64 encoder produce the exact same string on the input, but unfortunately I need the C# program to output the Base64 string that’s encoded through this method35 replies