Work with us
Last updated
Last updated
We are a democracy but the code that does not respect the guidelines could be rejected:
offer some very interesting free courses:
(contact us on GitHub if you want to participate)
Slack (contact us on GitHub if you want to participate)
Users must not be duplicated by tenant/application etc. Each user has only one login!
Once the user logs in, he will be able to access the list of applications he has access to (GSuite style) and can easily change the application, without having to log in again and without seeing applications to which he does not have access.
Once entered into an application, a user can change the visibility of the data from a combo in the toolbar. (such as the Organizations of the GCP portal, or in YouTube etc ...)
User verification will be done by exchanging a token in JWT format returned by Firebase Auth. Google takes care of automatically refreshare the token.
Docs: https://firebase.google.com/docs/auth/admin/custom-claims ES: https://www.toptal.com/firebase/role-based-firebase-authentication
Custom claims are only used to provide access control. They are not designed to store additional data (such as profile and other custom data). While this may seem like a convenient mechanism to do so, it is strongly discouraged as these claims are stored in the ID token and could cause performance issues because all authenticated requests always contain a Firebase ID token corresponding to the signed in user.
Use custom claims to store data for controlling user access only. All other data should be stored separately via the real-time database or other server side storage.
Custom claims are limited in size. Passing a custom claims payload greater than 1000 bytes will throw an error.
Custom claims format:
The claims contain a JS object and have a limit of about 1k of characters per user. If the limit is exceeded in Anacleto, a logic has been managed that zip the String.
If a user is admin of everything (such as a dev), use the SUPER_ADMIN property directly without giving him infinite roles
Coming soon a Firebase alternative: https://auth0.com/ + https://www.passportjs.org/
One of our mantras is to frequently update the libraries used in the project (if you stop for too long you are dead), usually the project managers take care of it.
npm audit
check of libraries with vulnerabilities
npm audit fix
update vulnerable libraries
npm outdated
returns libraries that can be updated
npm login
login on npm
npm publish
publish on npm
User management is delegated to Firebase Authentication:
npx npm-check-updates -u
Using the runInNewContext
method it is possible to execute JS statements using the same VM as nodeJS but in a different context. In this way it is NOT possible to execute code in the main context.