c# - WCF Service IIS to build user logged services for external clients -


i'm starting in .net , wcf services, sorry if i'm asking wrong or has nosense. way, sorry english too.

i'm trying build several wcf services hosted on iis internet clients can login username / password (info stored in db). when logged, can access info, see private documents, change profile , more actions related account.

well, in asp.net if session after success login, can build services "getmydocs" , know "who is", checking session username stored session id when calls login , session don't timed-out. i've noticed wcf services stateless, seems have send in requests username / pwd , check them in db before executing service... always!?

later, if want build client desktop / android / ios application, use services. can manage personal , private data through apps after success login.

how should handle this? wcf services way go or wcf aren't choice that? how can handle user identification wcf? because services linked user , "getmydocs", "savenewconfig", "payitem"... needs identify calling.

thanks in advance!! regards!

but i've noticed wcf services stateless

this statement kind of wrong. because create "wcf-based" web service state enabled. furthermore, state such broad term not worth covering here. example, use session state wcf service, or set instancecontextmode property of service 1 of following:

  • percall
  • persession
  • single

and of course, depends on how configure service itself.

if service needs consumed different clients, should consider @ implementing restful service along oauth 2.0 or similar can authenticate request using basic authentication header or issuing access token after successful authentication.


Comments

Popular posts from this blog

javascript - Wordpress slider, not displayed 100% width -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -