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

Dynamic Resource Decorator in Nest Js application #131

Open
hamzasaiff195 opened this issue Jul 14, 2022 · 2 comments
Open

Dynamic Resource Decorator in Nest Js application #131

hamzasaiff195 opened this issue Jul 14, 2022 · 2 comments

Comments

@hamzasaiff195
Copy link

We are using keycloak for user authentication and authorization in Nest Js application.
We want to implement resource-based-authorization and user-managed-access and for this purpose we need to customize or dynamic @resource() Decorator.
For example if a person bob has resource named 'Alpha' then we have to pass that resources name in Decorator ==> @resource('Alpha') then it'll allow request to move forward if this condition satisfied.
We don't want to hard code any value in @resource Decorator we want it to be dynamic.

Any suggestions or solution will be appreciated.

@bonnzer
Copy link

bonnzer commented Oct 3, 2022

Agree. Resource should accept dynamic data to allow pass resource names (or resource URIs #123, but names are preferred)

Any suggestions or solution will be appreciated

There's no solution yet I guess

@ferrerojosh
Copy link
Owner

There is no solution for now, this needs to be a feature along with #123

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

3 participants