M
M
Mikhail Plyusnin2016-08-01 11:54:12
JavaScript
Mikhail Plyusnin, 2016-08-01 11:54:12

React.js + WebApi.NET Can you tell me how to make an authorization?

I started learning React.js, so far there are no problems. And I think soon I will get to authorization, how can I do it all and link it with WebApi .NET?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2016-08-01
@rpe4a

What does WebApi .NET do? How will it authorize?
In general terms:
If by token, then there are no problems. You make a form, send data - you get a token in the response. Store the token somehow, for example, in localStorage. On logout, clear the token. On "expired" - either just ask to log in again, or use refresh tokens (I didn't bother with the refresh myself).
If not by token, then why and why?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question