CEF NTML C#

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

CEF NTML C#

Postby dakstar » Thu Jan 28, 2021 2:56 pm

Hello, my friend. I am trying to use CefSharp in C#, but I have problems with HTML authorization. Here is a sample code.
Code: Select all
CefSettings settings = new CefSettings();
           
            settings.CefCommandLineArgs.Add("enable-npapi", "1"); //Enable NPAPI plugs which were disabled by default in Chromium 43 (NPAPI will be removed completely in Chromium 45)
            //settings.CefCommandLineArgs.Add("enable-system-flash", "1"); //Automatically discovered and load a system-wide installation of Pepper Flash.
 
            settings.CefCommandLineArgs.Add("ppapi-flash-path", @"C:\WINDOWS\SysWOW64\Macromed\Flash\pepflashplayer32_25_0_0_171.dll");
            settings.CefCommandLineArgs.Add("ppapi-flash-version", "25.0.0.171"); //Load a specific pepper flash version (Step 2 of 2)
            settings.CefCommandLineArgs.Add("auth-server-whitelist", "*xxx.ru");
            settings.CefCommandLineArgs.Add("auth-delegate-whitelist", "*xxx.ru");
            Cef.Initialize(settings);

I ask for your help.
dakstar
Newbie
 
Posts: 7
Joined: Thu Jan 28, 2021 2:51 pm

Re: CEF NTML C#

Postby amaitland » Thu Jan 28, 2021 5:43 pm

What version are you using?

What exactly is the problem?
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: CEF NTML C#

Postby dakstar » Thu Jan 28, 2021 10:21 pm

amaitland wrote:What version are you using?


Version 79.1.360

amaitland wrote:What exactly is the problem?

The problem is that just authorization on the site does not occur. When you go to the site, just a white screen, through the browser (Google Chrome, Firefox all works(specifying the setting of the white list))
dakstar
Newbie
 
Posts: 7
Joined: Thu Jan 28, 2021 2:51 pm

Re: CEF NTML C#

Postby amaitland » Thu Jan 28, 2021 10:59 pm

Version 79.1.360 is old and unsupported. Does it work with version 86?
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: CEF NTML C#

Postby dakstar » Thu Jan 28, 2021 11:02 pm

amaitland wrote:Version 79.1.360 is old and unsupported. Does it work with version 86?

Today I will check and unsubscribe
dakstar
Newbie
 
Posts: 7
Joined: Thu Jan 28, 2021 2:51 pm

Re: CEF NTML C#

Postby dakstar » Fri Jan 29, 2021 8:18 am

amaitland wrote:Version 79.1.360 is old and unsupported. Does it work with version 86?

Installed version 86, but still authorization does not work
dakstar
Newbie
 
Posts: 7
Joined: Thu Jan 28, 2021 2:51 pm

Re: CEF NTML C#

Postby amaitland » Fri Jan 29, 2021 9:26 am

Have you checked the log file for errors? https://github.com/cefsharp/CefSharp/wi ... g#log-file
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: CEF NTML C#

Postby dakstar » Fri Jan 29, 2021 4:57 pm

amaitland wrote:Have you checked the log file for errors? https://github.com/cefsharp/CefSharp/wi ... g#log-file

There are no errors. Authorization fails
dakstar
Newbie
 
Posts: 7
Joined: Thu Jan 28, 2021 2:51 pm

Re: CEF NTML C#

Postby dakstar » Fri Jan 29, 2021 5:04 pm

amaitland wrote:Have you checked the log file for errors? https://github.com/cefsharp/CefSharp/wi ... g#log-file

Rechecked, there are errors, but they are not related to authorization

[0130/010006.642:ERROR:gl_surface_egl.cc(767)] EGL Driver message (Critical) eglInitialize: No available renderers.
[0130/010006.642:ERROR:gl_surface_egl.cc(1295)] eglInitialize D3D11 failed with error EGL_NOT_INITIALIZED, trying next display type
[0130/010006.642:ERROR:gl_surface_egl.cc(767)] EGL Driver message (Critical) eglInitialize: No available renderers.
[0130/010006.642:ERROR:gl_surface_egl.cc(1295)] eglInitialize D3D9 failed with error EGL_NOT_INITIALIZED
[0130/010006.642:ERROR:gl_initializer_win.cc(196)] GLSurfaceEGL::InitializeOneOff failed.
[0130/010006.657:ERROR:viz_main_impl.cc(229)] Exiting GPU process due to errors during initializatio
dakstar
Newbie
 
Posts: 7
Joined: Thu Jan 28, 2021 2:51 pm

Re: CEF NTML C#

Postby amaitland » Fri Jan 29, 2021 5:16 pm

I'd suggest downloading the latest CEF Sample application from https://cef-builds.spotifycdn.com/index.html#windows32

Run cefclient.exe with the common line args from a command prompt.

I've never used those command line args personally. Someone else might have some insight.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Next

Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 18 guests