I need your help. Can you please elaborate when a sign in request is sent to server via browser or api, how server differentiate between these requests?
Thank you.
I need your help. Can you please elaborate when a sign in request is sent to server via browser or api, how server differentiate between these requests?
Thank you.
I found an answer that might be helpful: How do I determine if a HTTP request came from a browser or something else like a web service?
Also have a read of this little article about ASP.NET API authentication: Basic Authentication in ASP.NET Web API
If it is simply an HTTP request then you cannot know. Otherwise if you're developing an API there are techniques used for authentication of the client as it's described in the second link I put above.
Hope this helps.