Confidence is the ultimate drug. When you are confident, you believe in yourself and everything you touch turns to gold. 3. Take responsibilities for your actions: you will win, you will be stupid at…
Security is one of the predominant aspects one must consider when developing any application or service.
This article will cover step by step guide to implement spring security for spring boot applications.
For instance, we will implement spring security for the following API’s:
We can configure spring security Authentication providers in multiple ways.
In this article, We will see configure it with two authentication providers:
1. An in-memory authentication provider.
In this case, we will store the username and password to be used during authentication in the properties(application.yml) file.
2. A custom authentication provider.
We will implement a custom authentication provider using AuthenticationManagerBuilder.
Here configurations are store in DB.
UserDetailsServiceImpl.java: It will implement UserDetailsService which locates user based on the username.
CredentialRepository.java: It will fetch the user by username from DB.
For any unauthorized access to the above API’s it will show the following error :
Whether you care about hydration for your athletic endeavors, for your chronically dry skin, or for general longevity, there’s no disputing that hydration is a crucial part of our health. It is what…
As a new father with an almost four-month-old, I made a choice back when I realized my partner was pregnant. That choice was to be the best father I could be. I want to be the father I never had…
Github pages are great for deploying static HTML files as documentation for your repo but unfortunately. This article just shows how you deploy dbt docs on an existing dbt-bigquery project in Github…