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

add example for how to extract auth info from path parameters #2

Open
vlmutolo opened this issue May 6, 2022 · 0 comments
Open

add example for how to extract auth info from path parameters #2

vlmutolo opened this issue May 6, 2022 · 0 comments

Comments

@vlmutolo
Copy link
Owner

vlmutolo commented May 6, 2022

This is arguably one of the more common use cases for authorization. Certain resource paths will be protected, and often a dynamic piece of the path will need to be given to the authorizer.

For example, if we have a website that protects the endpoint /vlmutolo/tower-biscuit-auth/, where both vlmutolo and tower-biscuit-auth are dynamically parsed path parameters, then we need to be able to provide both of those strings to the authorizer. We'd want to end up with something like:

resource("vlmutolo/tower-biscuit-auth")
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