简体   繁体   English

使用会话ID进行肥皂认证

[英]Soap Authentication using Session IDs

I am building an API using Zend Soap and there has to be some sort of authentication to actually use the API. 我正在使用Zend Soap构建API,并且必须进行某种身份验证才能实际使用API​​。 Also I don't want the user credentials to be sent over the net each time a request is done. 另外,我不希望每次请求完成时都通过网络发送用户凭据。

Is it ok to do an post-authentication by using sessionids & something like this: 是否可以通过使用sessionids和类似的东西来进行后认证:

  1. User authenticates himself once via SOAP and gets his serverside session id in return. 用户通过SOAP进行一次身份验证,并获得其服务器端会话ID作为回报。
  2. After that the User has to send his sessionid within the SOAP Header each time he requests something. 此后,用户每次请求时都必须在SOAP标头中发送其sessionid。
  3. When I get an header containing a sessionid, I check the id against my sessionid_db and perform the request if everything seems alright. 当我获得包含sessionid的标头时,我对照sessionid_db检查ID并在一切正常的情况下执行请求。

Look into oauth? 看看oauth? zend_oauth zend_oauth

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM