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

TAON(Auth & Payments ) authorization #33

Open
2 tasks
darekf77 opened this issue Dec 24, 2024 · 0 comments
Open
2 tasks

TAON(Auth & Payments ) authorization #33

darekf77 opened this issue Dec 24, 2024 · 0 comments

Comments

@darekf77
Copy link
Owner

  • limit crud controller methods
@Taon.CrudController(
...
allowOnlyMethods: ['getPayments'],

...
class UserController() {
 // to access whole controller
 authorize() {

 }
}
  • ??? methods only for user in specyfic group or with permission
@Taon.Http.Method.GET()
getPaymentInfo()  {
  if(this.sessionUser.isAuthorized('to-something')) { }
}
@darekf77 darekf77 converted this from a draft issue Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

1 participant