AWS MobileHub iOS SDK-AWSSignInProvider-没有有关类的文档 [英] AWS MobileHub iOS SDK - AWSSignInProvider - No documentation for class

查看:85
本文介绍了AWS MobileHub iOS SDK-AWSSignInProvider-没有有关类的文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到有关类AWSSignInProvider以及如何使用它的任何文档.有一个标题:

I cannot find any documentation on the class AWSSignInProvider and how to use it. There is a header:

  #import <UIKit/UIKit.h>

 @protocol AWSSignInProvider <NSObject>

 @property (readonly, getter=isLoggedIn) BOOL loggedIn;
 @property (readonly) NSURL *imageURL;
 @property (readonly) NSString *userName;

 - (void)login;
 - (void)logout;
 - (void)reloadSession;


 - (BOOL)application:(UIApplication *)application
 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;

 - (BOOL)application:(UIApplication *)application
        openURL:(NSURL *)url
   sourceApplication:(NSString *)sourceApplication
     annotation:(id)annotation;

 @end

我可以看到它正在AWSIdentityManager类中使用,但我一点也不了解,因此我试图弄清楚是否要使用它 为了完成开发者身份验证"流程 AWS MobileHub.

And I can see this being used in AWSIdentityManager classes but I don't understand it at all and am trying to figure out if to use this in order to complete the "Developer Authenticated Identity" flow in AWS MobileHub.

推荐答案

Zigglzworth,

Zigglzworth,

由Mobile Hub生成的iOS示例应用程序还没有完整记录的解决方案.在Mobile Hub控制台中创建项目并启用自定义"登录时,Mobile Hub只是创建与为该项目创建的默认Cognito身份池关联的开发人员提供程序名称".在Mobile Hub拥有完整的客户端解决方案之前,这就是您可以使用的.

The Mobile Hub generated iOS Sample App does not have a fully documented solution yet. When creating the project in the Mobile Hub console and enabling "Custom" sign in, Mobile Hub is simply creating a "Developer provider name" associated with the default Cognito Identity Pool created for that project. Until Mobile Hub has a fully working client solution, here’s what is available to you.

Amazon Cognito发布了端到端示例解决方案,用于使用开发人员验证的身份集成Cognito.

Amazon Cognito posted an end-to-end example solution for integrating Cognito using developer authenticated identities here. The blog includes building the Authentication Server AND implementing the custom identity provider in iOS and Android. They also provided an iOS and Android sample app that have added functionality to interact with this sample backend solution. In the blog, you’ll see a description of the iOS classes and code changes needed to make the request to get the token from your custom provider and how to pass that back to Cognito to obtain an authenticated Identity Id.

通读博客并按照说明实施后端提供程序,或确认您已经设置了后端,然后查看提供的示例客户端代码并参考博客中提到的代码更改.一旦对所需的流程和客户端代码更改有了更好的了解,就可以更新现有的Mobile Hub iOS项目代码,以匹配博客中讨论的示例代码更改.如果您对开发者身份验证身份有疑问或其他疑问,请随时使用Cognito AWS论坛

Read through the blog and implement the backend provider as described or confirm that you have your backend already setup and then take a look at the sample client code provided and reference the code changes mentioned in the blog. Once you have a better understanding of the flow and client code changes required, you can then update your existing Mobile Hub iOS project code to match the sample code changes discussed in the blog. If you have issues or additional questions regarding Developer Authenticated Identity, please feel free to utilize the Cognito AWS forums here.

这篇关于AWS MobileHub iOS SDK-AWSSignInProvider-没有有关类的文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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