51517

AWS MobileHub iOS SDK - AWSSignInProvider - No documentation for class

Question:

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

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.

Answer1:

Zigglzworth,

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 posted an end-to-end example solution for integrating Cognito using developer authenticated identities <a href="https://mobile.awsblog.com/post/Tx3E3NJURV1LNV1/Integrating-Amazon-Cognito-using-developer-authenticated-identities-An-end-to-en" rel="nofollow">here</a>. 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.

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 <a href="https://forums.aws.amazon.com/forum.jspa?forumID=173" rel="nofollow">here</a>.

Recommend

  • How to find duplicate names using pandas?
  • Java.lang.SecurityException:SECURE PERMISSION in android?
  • How to tackle diagonally stacked, rounded image background element hovers?
  • Direct insert data in mysql data in android
  • How can I filter REST calls results based on Roles and current user context in Loopback (server side
  • How to authenticate user name and password against Active Directory Federation Services (ADFS)?
  • Wrap assemblies in .NET?
  • Simple Factory with reflection C#
  • how to pass class attribute and value to markdown syntax
  • JPA CDI Injecting DAO into an Entity
  • Hibernate in Glassfish - Ejb3Configuration NoClassDefFoundError
  • C++ and JS RegEx equivalent of \\p{L}
  • Zend framework 2 : Add different authentication adapter for two different modules
  • Spring security - same page to deliver different content based on user role
  • Does CSS support inheritance [duplicate]
  • cell spacing in div table
  • Magento get URL before current
  • XSLT foreach repeating nodes to flat
  • How to create a 2D image by rotating 1D vector of numbers around its center element?
  • C#: Import/Export Settings into/from a File
  • Prevent Tomcat from caching request during starup
  • Thread 1: EXC_BAD_ACCESS (code =1 address = 0x0)
  • Why use database factory in asp.net mvc?
  • Can someone please explain to me in the most layman terms how to use EventArgs?
  • How do I signal completion of my dataflow?
  • How to use JavaScript to determine whether a file exists in a directory?
  • Installing Apache MyFaces 2 on WildFly 8.2.0
  • Breeze - Deleted Items nav properties bug
  • Asynchronous UI Testing in Xcode With Swift
  • If I include Java 8 in my Android app does that affect which devices it will work on?
  • Using jQuery closest() method with class selector
  • Why is an OPTIONS request sent to the server?
  • Array.prototype.includes - not transformed with babel
  • javaw.exe and eclipse startup problems
  • Statically linking a C++ library to a C# process using CLI or any other way
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • python regex in pyparsing
  • Why can't I rebase on to an ancestor of source changesets if on a different branch?
  • need help with bizarre java.net.HttpURLConnection behavior
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass