auth0 / auth0-oidc-client-net

OIDC Client for .NET Desktop and Mobile applications
https://auth0.github.io/auth0-oidc-client-net/
Apache License 2.0
84 stars 48 forks source link

An option to open the Webview in full screen ( Maximized ) using Auth0.OidcClient.WPF #318

Closed emadgit closed 7 months ago

emadgit commented 7 months ago

Checklist

Describe the problem you'd like to have solved

Hi there,

I'm trying to use Auth0.OidcClient.WPF to integrate authentication to a desktop app, after we call: await client.LoginAsync();

it will open the auth0 login within a webview, but the webview screen size as you can see in the screenshot, open with some fixed size and user need to re-position and scroll ( Specially if there are social logins or enterprise connection is config for the application ) to see the whole universal login within this form.

Screenshot 2024-01-05 at 11 28 47

Describe the ideal solution

I was wondering if there's an option or config currently to use and make the webview to open as a fullscreen? and if it's not, what do you think to have it as a new feature? I guess this make the flow more user friendly.

Alternatives and current workarounds

No response

Additional context

No response

frederikprijck commented 7 months ago

You can create an instance of the WebViewBrowser and pass it the corresponding options, or even a window factory: https://github.com/auth0/auth0-oidc-client-net/blob/master/src/Auth0.OidcClient.WPF/WebViewBrowser.cs#L23-L35

Even more so, u can implement your own browser entirly and hook it into the SDK.