예제 #1
0
        /// <summary>
        /// Log a user into a Mobile Services application given a provider name.
        /// </summary>
        /// <param name="client">The MobileServiceClient instance to login with</param>
        /// <param name="context">The Android Context to display the Login UI in.</param>
        /// <param name="provider">Authentication provider to use.</param>
        /// <param name="uriScheme">The URL scheme of the application.</param>
        /// <param name="parameters">Provider specific extra parameters that are sent as query string parameters to login endpoint.</param>
        /// <returns>The user record for the authenticated user.</returns>
#pragma warning disable IDE0060 // Remove unused parameter
        public static Task <MobileServiceUser> LoginAsync(this MobileServiceClient client, Context context, string provider, string uriScheme, IDictionary <string, string> parameters)
#pragma warning restore IDE0060 // Remove unused parameter
        {
            var auth = new MobileServiceUIAuthentication(client, provider, uriScheme, parameters);

            return(auth.LoginAsync());
        }
#pragma warning disable IDE0060 // Remove unused parameter
        internal static Task <MobileServiceUser> LoginAsync(MobileServiceClient client, RectangleF rect, object view, string provider, string uriScheme, IDictionary <string, string> parameters)
#pragma warning restore IDE0060 // Remove unused parameter
        {
            var auth = new MobileServiceUIAuthentication(client, provider, uriScheme, parameters);

            return(auth.LoginAsync());
        }
예제 #3
0
        internal static Task <MobileServiceUser> LoginAsync(IMobileServiceClient client, RectangleF rect, object view, string provider, IDictionary <string, string> parameters)
        {
            var auth = new MobileServiceUIAuthentication(rect, view, client, provider, parameters);

            return(auth.LoginAsync());
        }
예제 #4
0
        /// <summary>
        /// Log a user into a Mobile Services application given a provider name.
        /// </summary>
        /// <param name="client" type="Microsoft.WindowsAzure.MobileServices.IMobileServiceClient">
        /// The MobileServiceClient instance to login with
        /// </param>
        /// <param name="context" type="Android.Content.Context">
        /// The Context to display the Login UI in.
        /// </param>
        /// <param name="provider" type="string">
        /// The name of the authentication provider to use.
        /// </param>
        /// <param name="parameters">
        /// Provider specific extra parameters that are sent as query string parameters to login endpoint.
        /// </param>
        /// <returns>
        /// Task that will complete when the user has finished authentication.
        /// </returns>
        public static Task <MobileServiceUser> LoginAsync(this IMobileServiceClient client, Context context, string provider, IDictionary <string, string> parameters)
        {
            var auth = new MobileServiceUIAuthentication(context, client, provider, parameters);

            return(auth.LoginAsync());
        }
예제 #5
0
        /// <summary>
        /// Log a user into a Mobile Services application given a provider name.
        /// </summary>
        /// <param name="client">
        /// The client.
        /// </param>
        /// <param name="provider">
        /// Authentication provider to use.
        /// </param>
        /// <returns>
        /// Task that will complete when the user has finished authentication.
        /// </returns>
        public static Task <MobileServiceUser> LoginAsync(this IMobileServiceClient client, string provider)
        {
            MobileServiceUIAuthentication auth = new MobileServiceUIAuthentication(client, provider);

            return(auth.LoginAsync());
        }
 /// <summary>
 /// Log a user into a Mobile Services application given a provider name.
 /// </summary>
 /// <param name="client" type="Microsoft.WindowsAzure.MobileServices.IMobileServiceClient">
 /// The MobileServiceClient instance to login with
 /// </param>
 /// <param name="context" type="Android.Content.Context">
 /// The Context to display the Login UI in.
 /// </param>
 /// <param name="provider" type="string">
 /// The name of the authentication provider to use.
 /// </param>
 /// <returns>
 /// Task that will complete when the user has finished authentication.
 /// </returns>
 public static Task<MobileServiceUser> LoginAsync(this IMobileServiceClient client, Context context, string provider)
 {
     var auth = new MobileServiceUIAuthentication(context, client, provider);
     return auth.LoginAsync();
 }
        /// <summary>
        /// Log a user into a Mobile Services application given a provider name.
        /// </summary>
        /// <param name="client">
        /// The client.
        /// </param>
        /// <param name="provider">
        /// Authentication provider to use.
        /// </param>
        /// <param name="parameters">
        /// Provider specific extra parameters that are sent as query string parameters to login endpoint.
        /// </param>
        /// <returns>
        /// Task that will complete when the user has finished authentication.
        /// </returns>
        public static Task<MobileServiceUser> LoginAsync(this IMobileServiceClient client, string provider, IDictionary<string, string> parameters)
        {
            MobileServiceUIAuthentication auth = new MobileServiceUIAuthentication(client, provider, parameters);

            return auth.LoginAsync();
        }
 internal static Task<MobileServiceUser> LoginAsync(IMobileServiceClient client, RectangleF rect, object view, string provider, IDictionary<string, string> parameters)
 {
     var auth = new MobileServiceUIAuthentication(rect, view, client, provider, parameters);
     return auth.LoginAsync();
 }
 /// <summary>
 /// Log a user into a Mobile Services application given a provider name.
 /// </summary>
 /// <param name="client">
 /// The client.
 /// </param>
 /// <param name="provider">
 /// Authentication provider to use.
 /// </param>
 /// <returns>
 /// Task that will complete when the user has finished authentication.
 /// </returns>
 public static Task<MobileServiceUser> LoginAsync(this IMobileServiceClient client, MobileServiceAuthenticationProvider provider)
 {
     MobileServiceUIAuthentication auth = new MobileServiceUIAuthentication(client, provider);
     
     return auth.LoginAsync();
 }
예제 #10
0
        /// <summary>
        /// Log a user into a Mobile Services application given a provider name.
        /// </summary>
        /// <param name="client">
        /// The client.
        /// </param>
        /// <param name="provider">
        /// Authentication provider to use.
        /// </param>
        /// <param name="uriScheme">
        /// The uri scheme.
        /// </param>
        /// <param name="parameters">
        /// Provider specific extra parameters that are sent as query string parameters to login endpoint.
        /// </param>
        /// <returns>
        /// Task that will complete when the user has finished authentication.
        /// </returns>
        public static Task <MobileServiceUser> LoginAsync(this MobileServiceClient client, string provider, string uriScheme, IDictionary <string, string> parameters)
        {
            MobileServiceUIAuthentication auth = new MobileServiceUIAuthentication(client, provider, uriScheme, parameters);

            return(auth.LoginAsync());
        }