reactjs - client/server authentiation: React client with C# web api -


i had app used mvc template, prescaffolded authentication (the 1 bootstrap). migrating project on web api , react client, still need same functionality. mvc authentication used sql server. want can same, unless better possible. how can implement authentication/authorization web api? guess can store password in react's state/props, , maybe pass http calls?

you can generate token using web api , store on react front-end in local storage. , whenever http call put token in authorization header , match web api backend.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

minify - Minimizing css files -

php - How to remove letter in front of the word laravel -