简体   繁体   English

使用 AppAuth 注册用户

[英]Registering user with AppAuth

I am working with AppAuth to implement SSO in my app.我正在使用 AppAuth 在我的应用程序中实现 SSO。 I have implemented logging the user in with AppAuth and the Auth Intent.我已经实现了使用 AppAuth 和 Auth Intent 登录用户。 I am now looking at registering users via the AppAuth SDK.我现在正在考虑通过 AppAuth SDK 注册用户。 Does AppAuth support the registering of users? AppAuth 是否支持用户注册?

I appreciate this is a little ambiguous however, I had made an assumption that registration would also be handled through AppAuth but I can't find documentation on it.我很欣赏这有点模棱两可,但是,我假设注册也将通过 AppAuth 处理,但我找不到关于它的文档。

Registration is a feature of the Identity Provider and you don't code it in the client app, so it will never be a feature of AppAuth.注册是身份提供者的一项功能,您不会在客户端应用程序中对其进行编码,因此它永远不会成为 AppAuth 的一项功能。 There are two options that are most commonly used:有两个最常用的选项:

  • A login screen can offer a self sign up feature as in the 'Create Account' option in the below image.登录屏幕可以提供自我注册功能,如下图的“创建帐户”选项所示。 This makes sense when your app deals with personal assets of the end user.当您的应用程序处理最终用户的个人资产时,这是有道理的。 You should not need to write any code to make this work.您不需要编写任何代码来完成这项工作。

  • Alternatively users may need to be provisioned by an administrator, if the app deals with corporate assets that do not belong to the user.或者,如果应用程序处理不属于用户的公司资产,则可能需要由管理员配置用户。 This is typically managed by your back end components, which might call a SCIM 2.0 endpoint to create the user.这通常由您的后端组件管理,这些组件可能会调用SCIM 2.0 端点来创建用户。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM