示例#1
0
 public QQConnectAuthenticationController(ISettingService settingService, ExternalAuthenticationSettings externalAuthenticationSettings, IPermissionService permissionService, IStoreContext storeContext, IStoreService storeService, ILocalizationService localizationService, IExternalAuthenticationService externalAuthenticationService, QQConnectExternalAuthSettings facebookExternalAuthSettings, IOptionsMonitorCache <QQConnectOptions> optionsCache)
 {
     _settingService                = settingService;
     _permissionService             = permissionService;
     _localizationService           = localizationService;
     _externalAuthenticationService = externalAuthenticationService;
     _facebookExternalAuthSettings  = facebookExternalAuthSettings;
     _optionsCache = optionsCache;
 }
示例#2
0
 public void Configure(AuthenticationBuilder builder)
 {
     builder.AddQQ("QQConnect", delegate(QQOptions options) {
         QQConnectExternalAuthSettings settings = EngineContext.Current.Resolve <QQConnectExternalAuthSettings>();
         options.AppId      = settings.ClientKeyIdentifier;
         options.AppKey     = settings.ClientSecret;
         options.SaveTokens = true;
     });
 }