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; }
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; }); }