Hello guys, does server have support for auth bear...
# ask-for-help
j
Hello guys, does server have support for auth bearer tokens without BentomL cloud ?
c
You can try using a ASGI middleware and add your own auth logic https://docs.bentoml.com/en/latest/guides/asgi.html
j
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
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
j
This makes sense to me. Thank you Very much