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

Auth as Middleware for API gRPC calls #69

Open
alex-astronomer opened this issue Apr 23, 2023 · 0 comments
Open

Auth as Middleware for API gRPC calls #69

alex-astronomer opened this issue Apr 23, 2023 · 0 comments

Comments

@alex-astronomer
Copy link
Contributor

I noticed that most of the functions in the API run self.authenticate. For now, this is just a passthrough that returns some AuthData and always returns OK. Instead of having this logic running individually for each request, I'm wondering if this is something that could be run as a middleware or a tower::Layer or somewhere that abstracts it away from the requests.

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

1 participant