public async Task LoginAsync(OidcSettings settings) { _settings = settings; if (_config == null) { await LoadOpenIdConnectConfigurationAsync(); } this.Visibility = Visibility.Visible; webView.Navigate(CreateUrl()); }
private async void LoginButton_Click(object sender, RoutedEventArgs e) { var settings = new OidcSettings { Authority = "https://localhost:44333/core", ClientId = "wpf.hybrid", ClientSecret = "secret", RedirectUri = "http://localhost/wpf.hybrid", Scope = "openid profile write", LoadUserProfile = true }; await _login.LoginAsync(settings); }