sso 登录_单一登录(SSO)的说明

SSO(单一登录)允许用户在登录主服务后,无需反复验证即可访问多个服务。基本流程包括登录主服务,获取一次性密码令牌,新服务验证令牌后授权用户。文中以Google服务为例说明SSO的便利性,并通过Disqus SSO的实施步骤,展示了如何在自建产品中集成SSO,包括生成和验证令牌的过程。SSO简化了第三方服务的登录流程,提高了用户体验。
摘要由CSDN通过智能技术生成

sso 登录

When you’re developing a product for the masses, it is very rare that you would come up with a totally standalone product that does not interact with any other service. When you use a third-party service, user authentication is a relatively difficult task, as different applications have different mechanisms in place to authenticate users. One way to solve this issue is through Single Sign On, or SSO.

当您为大众开发产品时,很少有人会想到一个完全独立的产品,该产品不会与任何其他服务交互。 当您使用第三方服务时,用户身份验证是一个相对困难的任务,因为不同的应用程序具有用于身份验证用户的不同机制。 解决此问题的一种方法是通过Single Sign On或SSO。

Single Sign On (SSO) is a process that permits a user to access multiple services after going through user authentication (i.e. logging in) only once. This involves authentication into all services the user has given permission to, after logging into a primary service. Among other benefits, SSO avoids the monotonous task of confirming identity over and over again through passwords or other authentication systems.

单一登录(SSO)是一种过程,它允许用户仅经过一次用户身份验证(即登录)后才能访问多个服务。 这涉及到登录主服务后,对用户已授予权限的所有服务进行身份验证。 除其他好处外,SSO避免了通过密码或其他身份验证系统一遍又一遍地确认身份的单调任务。

Let’s look at SSO in more detail and we’ll use a very well-known service to demonstrate its uses and benefits.

让我们更详细地看一下SSO,我们将使用一个非常著名的服务来演示其用途和好处。

认证过程 (The Authentication Process)

The basic process of SSO is as follows:

SSO的基本过程如下:

  • The first step is logging into the main service (Facebook or Google, for instance).

    第一步是登录主服务(例如,Facebook或Google)。
  • When you visit a new service, it redirects you to the original (or parent) service to check if you are logged in at that one.

    当您访问一项新服务时,它会将您重定向到原始(或父)服务,以检查您是否已登录到该服务。
  • An OTP (One-time password) token is returned.

    返回一个OTP(一次性密码)令牌。
  • The OTP token is then verified by the new service from the parent’s servers, and only after successful verification is the user granted entry.

    然后,新服务将通过父服务器的新服务来验证OTP令牌,只有在成功验证之后,用户才被授予条目。

Although making the API for SSO is a tedious task, especially in handling security, implementation is a relatively easier task!

尽管制作用于SSO的API是一项繁琐的工作,尤其是在处理安全性方面,但实现起来却相对容易一些!

A good example of the use of SSO is in Google’s services. You need only be signed in to one primary Google account to access different services like YouTube, Gmail, Google+, Google Analytics, and more.

Google的服务就是使用SSO的一个很好的例子。 您只需登录一个主要Google帐户即可访问YouTube,Gmail,Google +,Google An

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值