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

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -