具有来自数据库的oAuth2安全凭证的Spring Boot Rest服务 [英] Spring Boot Rest service with oAuth2 Security credentials from database

查看:65
本文介绍了具有来自数据库的oAuth2安全凭证的Spring Boot Rest服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮我举一个Spring Boot应用程序的例子,该应用程序包含一个Rest服务,该端点的服务受Spring Security的保护,并使用oAuth2和MySQL数据库中的用户凭据来进行保护?

Could anyone please help me with an example of a Spring Boot application that contains a Rest Service with endpoints protected by Spring Security using oAuth2 with user credentials from a MySQL database?

推荐答案

如何解决这个问题:

How about this one: https://github.com/spring-projects/spring-security-oauth/tree/master/tests/annotation/jdbc (it's not MySQL, but it's JDBC, so the transformation is trivial)?

这篇关于具有来自数据库的oAuth2安全凭证的Spring Boot Rest服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆