realm / realm-loginkit

A generic interface for logging in to Realm Mobile Platform apps
Apache License 2.0
74 stars 21 forks source link

Added authentication provider mechanism with Amazon Cognito #34

Closed TimOliver closed 7 years ago

TimOliver commented 7 years ago

This PR marks the start of allowing third party authentication with the Realm LoginKit.

A new property has been added to LoginViewController called authenticationProvider. This is an object that conforms to the AuthenticationProvider protocol, which allows a third party object to submit the user-entered credentials to an external service, and return a SyncCredentials object that can then be submitted to the Realm Object Server as normal.

This PR also introduces a new object conforming to AuthenticationProvider that demonstrates the basics of integration with AWS Cognito, a user management system by Amazon.