From the course: Building Android Apps with Azure

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Implement AzureAuthProvider

Implement AzureAuthProvider

- [Instructor] Before we proceed further, let's review how the login process works. Now under the Android project view, I'm going to select the azuremobilesdk Gradle module, and I'm gonna open up com.microsoft.windowsazure.mobileservices, and I'm going to select MobileServiceClient. Let's open that up, and we'll search for login. So this login method of the mobile service client will behind the scenes call start activity result. And we can see hints of that in the parameters that are passed in here like the authRequestCode. There's also other parameters being passed in, like the URI scheme, and the authentication provider. There is a lot of data being exposed by this login process, and this is a problem because the activity that's calling this login method does not really need to know about the internals of the login process. Exposing them could lead to data being used where it shouldn't be, and unintended dependencies being created. If we are handling more than one login provider…

Contents