Frontend Tips 3 — Authorizing your applications

Member-only story

Frontend Tips 3 — Authorizing your applications

Quique Fdez. Guerra
3 min readJun 29, 2020

In this tip I want to share how I like to authorize any Single Page Application using frameworks like Angular, React or Vue or without any framework.

To do that I’ve been working with the same library in some projects of the last year, and this library is CASL, a really simple library to manage permissions in any JavaScript or TypeScript application.

Introducing CASL

They define theirselves with four important features, first is a versatile library is really simple and can be used in small or large projects, the idea is to don’t automatize everything but made it fully customizable.

Is an isomorphic package, can be used in frontend or backend (with node) and works with the most common frameworks.

Created with TypeScript it makes it a type safe project, but you can also use it without TS if you want.

They made the project thinking in three shaking and all the parts are in different packages that you can import as you need.

Finally, they define the library as declarative and for me is really readable, you can easily understand what is happening all the time.

Configuring the abilities

--

--

Quique Fdez. Guerra
Quique Fdez. Guerra

Written by Quique Fdez. Guerra

Director of Engineering at @PlainConcepts Romania Frontend Developer Lazy @Github contributor Happy @Helpdev_ founder Web @GoogleDevExpert

No responses yet