The idea is that this should be a cross-platform implementation, where it should use *Why*
We need to provide the interfaces that have been defined public APIs to perform allow developers to invoke auth actions.
During *What*
We should look at the runtime, current implementation in iOS and Android auth SDKs:
https://github.com/aerogear/aerogear-ios-sdk/blob/master/modules/auth/AgsAuth.swift https://github.com/aerogear/aerogear-android-sdk/blob/master/auth/src/main/java/org/aerogear/mobile/auth/AuthService.java
They both provide similar functions.
We should be able to create the AuthService module in the shared Xamarin project. It should:
* Initialise the right implementation for some of the interfaces during runtime (for example, it should be injected create an instance of the iOS storage class for the storage interface when running on iOS) * implement the login/logout/resume functions. It should delegate to the module right authenticator depending on the runtime platform * implement the currentUser() function to return the current logged in user . [Trello link|https://trello.com/c/d23b4QbC] |
|