Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

普通的http一般都带有鉴权的,Triple X 南北向流量如何做鉴权 #3065

Open
mygetjc opened this issue Nov 22, 2024 · 2 comments

Comments

@mygetjc
Copy link

mygetjc commented Nov 22, 2024

@DubboService
public class UserServiceImpl implements UserService {
// 处理东西向请求
}

// Triple X 也支持南北向流量处理
@DubboService
public class OrderService {
@GetMapping("/order/{orderId}")
public Order getOrderById(@PathVariable("orderId") String orderId) {}
}

@oxsean
Copy link
Contributor

oxsean commented Nov 22, 2024

Basic authentication is supported by default, you can also implement spi to customize authentication
https://dubbo.apache.org/zh-cn/overview/mannual/java-sdk/reference-manual/protocol/tripe-rest-manual/#%E5%AE%89%E5%85%A8%E9%85%8D%E7%BD%AE

Or you can use rest spi to intercept request for 3A(Authentication, Authorization, Accounting)
https://dubbo.apache.org/zh-cn/overview/mannual/java-sdk/reference-manual/protocol/tripe-rest-manual/#%E6%94%AF%E6%8C%81%E7%9A%84%E6%89%A9%E5%B1%95%E7%82%B9%E6%B1%87%E6%80%BB

@mygetjc
Copy link
Author

mygetjc commented Nov 22, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants