Casl: CASL Examples of integration in X framework

Created on 26 Jul 2017  路  12Comments  路  Source: stalniy/casl

  • [x] [Angular 2+](https://medium.com/@sergiy.stotskiy/managing-user-permissions-in-angular-application-504c83752f83)
  • [x] [Aurelia](https://medium.com/dailyjs/casl-based-authorization-in-aurelia-app-3e44c0fe1703)
  • [x] [Vue.js](https://medium.com/@sergiy.stotskiy/vue-acl-with-casl-781a374b987a)
  • [x] [React integration](https://medium.com/@sergiy.stotskiy/managing-user-permissions-in-your-react-app-a93a94ff9b40)
  • [x] [Express.js](https://medium.com/dailyjs/authorization-with-casl-in-express-app-d94eb2e2b73b)
  • [x] [Feathersjs](https://blog.feathersjs.com/authorization-with-casl-in-feathersjs-app-fd6e24eefbff)
  • [x] [Rails + cancan](https://medium.com/@sergiy.stotskiy/casl-and-cancan-permissions-sharing-between-ui-and-api-5f1fa8b4bec)

Most helpful comment

  • Vue

All 12 comments

  • Vue
  • Angular2+ integration

An article for Vue https://medium.com/@sergiy.stotskiy/vue-acl-with-casl-781a374b987a

integration with React https://github.com/stalniy/casl-react-example, the article is coming soon

the article about React will be published on 5th Feb

CASL with Vue and Vuex repo - https://github.com/stalniy/casl-vue-api-example

Hi, thanks a lot for providing example for React,
but still is it possible to give an separate example for React + Redux?

To be honest I just have a problem updating rules on user login event,
and how to use Ability.update in general,
in understanding how Ability persists in our app.

Sorry if this is off-topic,
and if you have no time for this implementation,
just reply something like "have no time for this",
so I will move on to something custom.

@mrV25 you can check how I did this for Vuex in this repo https://github.com/stalniy/casl-vue-api-example . Also you can find useful explanations in this article https://medium.com/@sergiy.stotskiy/casl-and-cancan-permissions-sharing-between-ui-and-api-5f1fa8b4bec

Currently I don't plan to write an article about React and Redux, probably a bit later I will publish a book about CASL with recipes for different integrations and requirements

https://github.com/stalniy/casl-angular-example example for Angular. Plan to publish an article about it in a week

article for Angular https://medium.com/@sergiy.stotskiy/managing-user-permissions-in-angular-application-504c83752f83

Was this page helpful?
0 / 5 - 0 ratings