Thanks, @Chaoyu :) I am using this to add other routes to my API server. However, I couldn't find an example of how to implement OAuth2 authentication with this middleware.
IS there a easy way to do this like fastapi ?
https://fastapi.tiangolo.com/tutorial/security/simple-oauth2/
c
Chaoyu
05/21/2024, 8:47 PM
I’d recommend:
1) build those auth endpoints with fastapi and mount it to BentoML service
2) build a separate auth layer as a proxy in front of BentoML server