Пример #1
0
        public override void ConfigureMiddleware(IAppBuilder appBuilder,
                                                 Microsoft.WindowsAzure.Mobile.Service.ServiceSettingsDictionary settings)
        {
            LinkedInAuthenticationOptions options = new LinkedInAuthenticationOptions
            {
                ClientId           = settings["LinkedInClientId"],
                ClientSecret       = settings["LinkedInClientSecret"],
                AuthenticationType = this.Name,
                Provider           = new LinkedInAuthenticationProvider()
            };

            appBuilder.UseLinkedInAuthentication(options);
        }
Пример #2
0
        public override void ConfigureMiddleware(IAppBuilder appBuilder,
                                                 Microsoft.WindowsAzure.Mobile.Service.ServiceSettingsDictionary settings)
        {
            SinaWeiboAccountAuthenticationOptions options = new SinaWeiboAccountAuthenticationOptions
            {
                AppId              = settings["SinaWeiBoClientId"],
                AppSecret          = settings["SinaWeiBoClientSecret"],
                AuthenticationType = this.Name,
                Provider           = new SinaWeiboAccountAuthenticationProvider()
            };

            appBuilder.UseSinaWeiboAuthentication(options);
        }
 public override void ConfigureMiddleware(Owin.IAppBuilder appBuilder, Microsoft.WindowsAzure.Mobile.Service.ServiceSettingsDictionary settings)
 {
     return;
 }