macielti / porteiro Goto Github PK
View Code? Open in Web Editor NEWA microservice for users and authentication management
License: Other
A microservice for users and authentication management
License: Other
We need to reimplement the porteiro.db.datomic.user/insert-user-with-contact!
for Datalevin database.
A Contact entity will be a general entity to deal with different methods of contacting a user.
Add a Docker Image publish Github action step.
We need to reimplement the porteiro.db.datomic.user/insert!
for Datalevin database.
This task also contemplates the lookup function.
Get the user info from the JWToken instead of making a query to the database to get the roles information.
From the JWToken I want to be able to know what is the usernames of the user that the token represents.
What about if we want to drop some roles from a user instantly? The user will remain in possession of the roles while the current JWToken is valid and not expired.
If we want the roles update operation to affect users instantly we should think in a way of having a service responsible for validating JWToken sessions, so the user-identity interceptor of every service should verify the JWToken using this service before letting it go.
This can have its cons and pros. One pro is that we will be able to expire JWToken sessions actively instead of having to wait for the expiration time passively. One con is that we would have to make an HTTP call to the JWToken session verification for every time that we need to use the info stored in JWTokens.
I think that one HTTP call is a fair price to pay for the guarantee and access-control benefits that it will enable us to have.
When a user account is created we need to send an email with information about how to set up a Telegram contact.
Based on:
porteiro/src/porteiro/wire/datomic/user.clj
Lines 4 to 26 in a0cfc75
The role information should be inside the JWToken login result.
While authenticating the customer should be able to authenticate himself using the email or username.
Since we don't have an endpoint to create an admin user if we are not an admin first, we need to have a way of setting a default admin user in the settings file.
I am thinking about requiring a JWT token to get the healthy status of the service.
When a user creates an account, the service should already do an authentication process returning a valid auth token.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.