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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -