SOA Service Design / Authentication

耗尽温柔 提交于 2019-12-03 03:57:49

The best approach should be like this if all the services are internal,

  1. The authentication service issues a token the the service client.
  2. Service client includes the token in the SOA message wrapped in WS-Security or something similar.
  3. The service should validate the token with authentication service before providing the service.

For external services, I suggest you look at federated solutions like SAML.

Don't do premature optimization. Your option no. 3 which you acknowledge will be more complicated to implement is unnecessary. Choose option no. 2 if that's what you can implement fast. You can profile later and change it, but I'd bet money that you won't have a 'bottleneck' when going with option 2.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!