rjmurillo / webview-samples Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
The web view does not respond to right clicking. If the window is maximized, when the user clicks, on the webview, the window popup menu opens in the upper left part of the screen. (see image)
Platform: Windows 1909 64bit
Visual studio 2019
@rjmurillo Do you think this is an issue of the embedding app or the windows control?
I'm trying to login to 'login.microsoftonline.com' on a windows computer that has guest account logged in. When I enter my organization's username(i.e. [email protected]) and click 'Next' on the login page, web view does not show me windows security dialog to enter my company credentials. Am I doing something wrong here or Is this a know issue for WebView?
Hi Team,
I am trying to open webview in windows forms and i am using below versions of
and below code to load ADFS Url in webview so that user can key in username,password to authorize
Hi,
I am trying to load windows forms app if the user is succesfully logged into AD, For the same i am using
.NetCore3 preview 4
In Windows forms
var authResult = authContext.AcquireTokenAsync(resourceURI, clientID,
new Uri(clientReturnURI),
new PlatformParameters(PromptBehavior.Always, new CustomWebUi(SynchronizationContext.Current))); //Dispatcher.CurrentDispatcher
In
CustomWebUI Class
class CustomWebUi : ICustomWebUi
{
private readonly SynchronizationContext _dispatcher;
public CustomWebUi(SynchronizationContext dispatcher)
{
_dispatcher = dispatcher ?? throw new ArgumentNullException(nameof(dispatcher));
}
public Task AcquireAuthorizationCodeAsync(Uri authorizationUri, Uri redirectUr)
{
var tcs = new TaskCompletionSource();
_dispatcher.Send(_ =>
{
//anything you wish.
var webView = new WebView();
webView.
var w = new Window
{
Title = "Auth",
WindowStyle = WindowStyle.ToolWindow,
Content = webView,
};
w.Loaded += (sender, args) => webView.Navigate(authorizationUri);
w.Loaded += (sender, args) => webView.NavigateToString("<title>sfsdf</title>");
if (w.ShowDialog() != true && !tcs.Task.IsCompleted)
{
tcs.SetException(new Exception("canceled"));
}
}, null);
}
}
When i load it, It gives me below error. Can you please let me know where am i going wrong.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.