sapper-authentication-demo icon indicating copy to clipboard operation
sapper-authentication-demo copied to clipboard

add protected routes using sapper-rbac

Open primavera133 opened this issue 5 years ago • 3 comments

Second shot; now using sapper-rbac. Seems I had to add the unrestricet route ( '/.*') last to make it work properly.

primavera133 avatar May 07 '20 15:05 primavera133

I dunno, maybe you want to add this as a branch too, to keep the original example clean?

primavera133 avatar May 07 '20 15:05 primavera133

@primavera133 I'm going to have a think about how I want to handle addons such as this yeah - it might be a lot of maintenance, but it also might be a nice idea to keep things clean as you say.

antony avatar May 07 '20 23:05 antony

I built on both of your work here, replacing the backend with keycloak, and using passport + cookie-session instead of something custom:

https://github.com/CloudNativeEntrepreneur/sapper-authentication-demo

patrickleet avatar May 14 '20 14:05 patrickleet