Spring Boot 3 Tutorial Security OAuth2 Spring Authorization Server Save login data to a database.

preview_player
Показать описание
Spring Boot 3.0.2 Tutorial - Security - OAuth 2.0 Type

Jpa User Details Manager
Jpa Registered Client Repository
Jpa OAuth2 Authorization Service
Jpa OAuth2 Authorization Consent Service

How-to: Implement core services with JPA

SQL Code

GitHub:
Main branch:

Jpa User Details Manager:

Jpa Registered Client Repository:

Jpa OAuth2 Authorization Service:

Jpa OAuth2 Authorization Consent Service:

@WillyHomeLab

© 2022 Willy De Keyser, All Rights Reserved.
Рекомендации по теме
Комментарии
Автор

Great Content, how can i add social login like facebook twitter etc...

AhmedMohamed-djlg
Автор

Could you please explain how to register a new clients (applications) in database automatically. If I'm using Spring Cloud Gateway I can't make my gateway service be a client (with inmemory clientId and clientSecret). For example some application is trying to access my gateway:port/some_service endpoint, but there is no client secret and scope for this app so this app will not get an access token. Could you please explain how to deal with it?
Thank you for making these videos. It really helpend a lot!❤

spta
Автор

I dont want consent page, how to do without it i wanna send user name and password from body(like basic auth) through postman, how ? Can you please guide me through it ?

haripandey
Автор

nice video, can you please guide me that how can i call authorization server from postman without using spring default login page
Actually i want to use outh2.0, provide endpoint in postman, username and password in postman body and client key and client password in basic authentication

MalikIbtesam
Автор

How can configure my Rest API app to accept tokens for 2 authorization servers. For example, token can be for spring OAth2 Auth server or keycloak Auth server?

chrispure
Автор

What is the Callback URL used in postman?

kaielz
Автор

i copied the project and ran it just like that. but i am getting this error once i try the request with the Authorization code."Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Wed Sep 13 09:29:22 COT 2023
There was an unexpected error (type=None, status=999)." do you know what could be going on here?

jfparrado
Автор

Since we added client information on database. How do we validate access token using introspection endpoint?
I tried changing oauth2 format value to reference in sql file, it generate token but doesn't work on introspection endpoint.

siyu
Автор

i need to add logout functionality after login, how ways I achive this, any solution ?

kiranjawale
Автор

Very rich thanks, all the demos focus on InMemoryXXX which is really useless in the real world

EazzyWizzi