c# - Token based authentication in web api -


i developing web api service consumed asp.net mvc web application , mobile apps (android , ios). database , web api hosted on same server. want implement authentication web api (token based). database has table storing user credentials. have use database validate credentials when user logs in.

came across few articles suggest owin , identity server. confused on how proceed , need in understanding better approach.

you can implement token base authentication

  1. when user login system send random token code
  2. cash in client side
  3. when client side making request server send token request header
  4. validate token , accept request or reject

simple way :)


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -