Closed typischmann closed 9 years ago
Add pgcrypto to database. Test the new sql script
Where do we want to store the password and username? Do we want to store them into DB?
All the angularjs routing authentications requires an authenticate from server side.
we need to encrypt and store the password in DB, because we don't want to provide a extra public key infrastructure
The encryption could be implemented by triggers. The authentication is implemented as a function/stored procedure which can be called by JPA.
Postgres Encryption http://www.postgresql.org/docs/9.3/static/pgcrypto.html
Calling stored procedure(naitve sql) by JPA http://www.oracle.com/technetwork/articles/vasiliev-jpql-087123.html