DemocracyOS / core

1 stars 1 forks source link

Add keycloak-connect and protect routes #5

Closed guillecro closed 6 years ago

guillecro commented 6 years ago

For now, the idea is the API to use keycloak to protect the /admin panel to logged users. Then add the role "Administrator" to keycloak, create a new user as administrator, and test it.

guillecro commented 6 years ago

Update: We changed from Restify to ExpressJS Now its working properly.

Keycloak's redirect now works and .protect() works great :)

I will merge everything now!

guillecro commented 6 years ago

What to protect and how to do it, will be issued in another entry