Tag: authentication
-
How to do user authentication in Spring Boot using PostgreSQL database?
Let’s say you want to create an application in Spring Boot and authenticate the users who use it against credentials stored in a PostgreSQL database. Below are the high level steps to implement it in Spring Boot: Create a spring boot project with authentication related dependencies. Add the database configuration in application.properties against which you…
-
How to invoke a REST service protected by BasicAuth using Spring Open Feign?
Invoking REST services from Spring is much easier if you use Spring Open Feign. It allows you to invoke REST services declaratively and saves a lot of code. Here is the post explaining the basic concept of Open Feign: How to call a REST service declaratively using Open Feign? It is a very simple example…
-
How to authenticate a user when both offline and online in Angular?
I am developing an offline first angular app using Pouch DB and Couch DB . The end user is a desktop user who wants to use the app even when not connected to the internet. I am using Pouch DB for local database and Couch DB for remote database. One of the difficulties in developing…