Posts

Showing posts with the label Spring Boot 3

Integrating LinkedIn Authentication in a Spring Boot 3 application

Image
To integrate LinkedIn authentication in a Spring Boot application with Spring Security, you can use OAuth 2.0 authentication to authenticate users via LinkedIn. Spring Security 6+ provides OAuth 2.0 support for integrating third-party login services like LinkedIn. Here’s how to set up LinkedIn authentication with Spring Boot 3 and Spring Security 6+. 1. Add Dependencies In your pom.xml, include the necessary dependencies for Spring Security and OAuth 2.0 support.   <dependencies>     <!-- Spring Boot Starter Web -->     <dependency>         <groupId> org.springframework.boot </groupId>         <artifactId> spring-boot-starter-web </artifactId>     </dependency>     <!-- Spring Boot Starter Security -->     <dependency>         <groupId> org.springframework.boot </groupId>         ...

Spring Boot 3 Astra DB CRUD Example

Image
In this section,  we will learn how to build REST CRUD APIs with Spring Boot , and Astra DB . Astra DB DataStax Astra DB is a cloud-native, scalable Database-as-a-Service built on Apache Cassandra . Create a Database First, Sign into the datastax at https://astra.datastax.com . Then click on the "Databases" button. You will be taken to a page like the below image, then click on the " Create Database " button. Then enter Database name , Provider , and, Region , then click on the " Create Database " button. Now, You can see "Your database is initializing..." like the below image. You will be taken to a page like the below image. Copy " Database ID " and " region name " and keep them for future purposes. Generate Application Token Mocking Then click on " Tokens " button. You will be taken to a page like the below image, Then select role, for demo purpose here we selected role " Administrator User ". Then clic...