Spring Boot社交和依赖项概述

这篇文章基于我的最新经验,当时我只是想将社交登录集成到我的应用程序中。 春季启动后,这似乎很容易,是的,我正在使用springboot开发应用程序和服务,而我的奋斗开始了。 问题是春天在幕后做了很多事情,这使我们很难理解,因为我们是开发人员,我们至少需要所有控件,我们应该知道发生了什么事情(scherzosa)。

首先需要依赖项,这里是Spring Starter启动的世界,以及如何选择的难题。这篇文章主要关注Spring Starter依赖项以及何时选择哪个依赖项。

当我开始搜索如何与社交登录集成时,我遇到了以下选项。

  1. 使用Spring Oauth2客户端使用Spring Social。

现在与第一个选项一起使用Spring提供了两个带有两种不同口味的启动器

答:如果您使用的是Spring Boot。

springbootway
springbootway

B.如果您仅在项目中使用spring security

springsecurityonly
springsecurityonlydependency

But some time we have a case where we don't need security from spring or we need only social login without security definition or any security context. Spring provide solution for such cases where we can choose spring social integration with specific provider like facebook, linkedin etc.
Here are the dependencies use for such cases.
Alt Text

基本上,spring具有不同的项目流,它们通常在特定的启动器中结合一些项目,例如大多数是Spring Boot启动器,以及一些特定的流启动器,例如安全性。 但是人们总是可以根据情况选择像社会案例这样的独立流。

在确定了需要哪些依赖项之后,我们必须做一些真正的工作,每个依赖项都带有一些特定的功能集。 在以后的文章中,我将尝试介绍实现方面的差异。

from: https://dev.to//burhantaha/spring-boot-social-and-dependencies-overview-36f9

发布了0 篇原创文章 · 获赞 0 · 访问量 668

猜你喜欢

转载自blog.csdn.net/cunxiedian8614/article/details/105690910
今日推荐