是否可以将身份验证部分(在我的数据库中使用google,facebook和local)与授权部分分开?

时间:2019-05-23 15:47:23

标签: authentication spring-security oauth-2.0 openid spring-security-oauth2

我从这个春天的例子开始:

https://spring.io/guides/tutorials/spring-boot-oauth2/#_social_login_github

,我想以这种方式进行身份验证,然后授权已经过身份验证的用户。我被困住了,因为我不知道如何继续这个例子来达到我的目标。

我阅读了这篇文章: https://www.baeldung.com/spring-security-oauth-principal-authorities-extractor

但是我无法与前面的示例合并以获得结果。

如何验证用户身份,然后使用我自己的规则授权该用户?

0 个答案:

没有答案
相关问题