Home » Tag Archives: OAuth2

Tag Archives: OAuth2

Centralized Authorization with OAuth2 & Opaque Tokens using Spring Boot 2

java-interview-questions-answers

If you are looking for JWT implementation please follow this link This guide walks through the process to create a centralized authentication and authorization server with Spring Boot 2, a demo resource server will also be provided. If you’re not familiar with OAuth2 I recommend this read. Pre-req JDK 1.8Text editor or your favorite IDEMaven 3.0+ Implementation Overview For this project we’ll ...

Read More »

Centralized Authorization with OAuth2 & JWT using Spring Boot 2

spring-interview-questions-answers

This guide walks through the process to create a centralized authentication and authorization server with Spring Boot 2, a demo resource server will also be provided. If you’re not familiar with OAuth2 I recommend this read. Pre-req JDK 1.8Text editor or your favorite IDEMaven 3.0+ Implementation Overview For this project we’ll be using Spring Security 5 through Spring Boot. If you’re familiar with ...

Read More »

Spring Boot 2 native approach to SSO with OAuth 2/OpenID Connect

spring-interview-questions-answers

This post is the final part of a 3 post series exploring ways to enable SSO with an OAuth2 provider for Spring Boot 2 based applications. The 3 posts are: Ways to bootstrap an OpenID Connect compliant OAuth2 Authorization Server/OpenID Provider Legacy Spring Boot/Spring 5 approach to integrating with an OAuth2 Authorization Server/OpenID Provider  Newer Spring Boot 2/Spring 5 approach ...

Read More »

Spring Boot 2 Applications and OAuth 2 – Legacy Approach

spring-interview-questions-answers

This post is the second part of a 3 post series exploring ways to enable SSO with an OAuth2 provider for Spring Boot 2 based applications. The 3 posts are: 1.Ways to bootstrap an OpenID Connect compliant OAuth2 Authorization Server/OpenID Provider 2. Legacy Spring Boot/Spring 5 approach to integrating with an OAuth2 Authorization Server/OpenID Provider – this post 3. Newer ...

Read More »

Spring Boot 2 Applications and OAuth 2 – Setting up an Authorization Server

java-interview-questions-answers

This will be a 3 post series exploring ways to enable SSO with an OAuth2 provider for Spring Boot 2 based applications. I will cover the following in these posts: 1. Ways to bootstrap an OpenID Connect compliant OAuth2 Authorization Server/OpenID Provider. 2. Legacy Spring Boot/Spring 5 approach to integrating with an OAuth2 Authorization Server/OpenID Provider. 3. Newer Spring Boot 2/Spring ...

Read More »

Secure REST Service with OAuth2 Tokens

spring-interview-questions-answers

1. Introduction In this tutorial, we will check out how we can use Spring Security with OAuth to secure REST Service. In the demo application, the secured REST resources on the server are accessible with the path pattern (/api/**), such that the request URLs based on this path are mapped to different controller methods. This means that – Any REST ...

Read More »

Securing resources using Spring Security with OAuth

spring-interview-questions-answers

1. Introduction In this tutorial, we will check out how we can use Spring Security with OAuth to secure the admin resources on the server based on the path pattern (/api/**). Another path pattern (/oauth/token) we have configured which will help configured authorization server generate the access token. Note that we will be using Password Grant Type in this demo ...

Read More »

Understanding OAuth2 token authentication

java-interview-questions-answers

1. Introduction In this tutorial, we will be understanding OAuth2 Token Authentication, such that only authenticated users and applications get a valid access token which can be subsequently used to access authorized APIs (which are nothing but the protected resources in OAuth terms) on the server. With token based authentication, the users/applications get access to the protected resources for a certain ...

Read More »

OAuth2, JWT, Open-ID Connect and other confusing things

java-interview-questions-answers

Disclaimer If feel I have to start this post with an important disclaimer: don’t trust too much what I’m about to say. The reason why I say this is because we are discussing security. And when you talk about security anything other then 100% correct statements risks to expose you to some risk of any sort.  So, please, read this article ...

Read More »