Posts

Showing posts with the label Spring Security

Kotlin - Spring Security - Google OAuth2 Login - Example

Image
Hello everyone, Today we are going to learn how to integrate the Google OAuth2 Sign-In by utilizing the Kotlin + Spring Boot application with Gradle build. More Spring Security practice: Kotlin - Spring Security -GitHub OAuth2 Login - Example Spring Boot - Spring Security -Google OAuth2 Login - Example Spring Boot - Spring Security -GitHub OAuth2 Login - Example Registration and Login with Spring Boot + Spring Security + Thymeleaf Spring Boot-Authentication and Authorization with Spring Security & JWT   Generate Google OAuth2 credentials from Google developer console 1.  Log in  to the Google developer console using your Google account 2. Navigate to the Credentials section on the left menu, and choose the OAuth client ID option 3. Choose the application type, In our case "Web application". 4. Then, provide application name, Authorized javascript origins, authorized redirect URIs, and select the create option 5. After clicking the create button, one modal will pop up with

Spring Boot - Spring Security - Google OAuth2 Login - Example

Image
Hello everyone, Today we are going to learn how to integrate the Google OAuth2 Sign-In by utilizing the Spring Boot application. More Spring Security practice: Registration and Login with Spring Boot + Spring Security + Thymeleaf Spring Boot-Authentication and Authorization with Spring Security & JWT Spring Security -GitHub OAuth2 Login - Example   Generate Google OAuth2 credentials from Google developer console 1. Log in to the Google developer console using your Google account 2. Navigate to the Credentials section on the left menu, and choose the OAuth client ID option 3. Choose the application type, In our case "Web application". 4. Then, provide application name, Authorized javascript origins, authorized redirect URIs, and select the create option 5. After clicking the create button, one modal will pop up with the Client ID and Client Secret. Now we have successfully created the auth client in the google developer console Creating a Simple Web Application Now we are

Spring Boot + Spring Security + JWT Authentication and Authorization Example

Image
Hello everyone, Hope you are doing well, Today we will learn how to handle authentication and authorization on RESTful APIs written with Spring Boot. The  GitHub repository link is provided at the end of this tutorial. You can download the source code. A little bit of Background Spring Boot Spring Boot makes it easy to create stand-alone, production-grade Spring-based Applications that you can "just run".  More Info -  https://spring.io/projects/spring-boot Spring Security Spring Security is a framework that provides authentication, authorization, and protection against common attacks. With first-class support for securing both imperative and reactive applications, it is the de-facto standard for securing Spring-based applications. More Info -  https://docs.spring.io/spring-security/reference/index.html JSON Web Token(JWT) JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as