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

Provide guidance on how to apply authentication conditionally #11

Open
timostamm opened this issue Feb 7, 2024 · 0 comments · May be fixed by #12
Open

Provide guidance on how to apply authentication conditionally #11

timostamm opened this issue Feb 7, 2024 · 0 comments · May be fixed by #12
Assignees

Comments

@timostamm
Copy link
Member

In practice, it is common to have a handful of select RPCs that should be allowed to be called anonymously. We've had users asking for how to implement it with this module.

Since protoc-gen-connect-go generates a const for every procedure name, and authn.Request has a method to obtain a procedure name, it should be possible to implement an allowlist nicely.

It seems like we may want to make users aware of the existence of the generated const and the request method in the documentation, maybe with an example.

@emcfarlane emcfarlane linked a pull request Feb 7, 2024 that will close this issue
@emcfarlane emcfarlane self-assigned this Feb 23, 2024
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

Successfully merging a pull request may close this issue.

2 participants