Page 1 of 2

CEF NTML C#

PostPosted: Thu Jan 28, 2021 2:56 pm
by dakstar
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.

Re: CEF NTML C#

PostPosted: Thu Jan 28, 2021 5:43 pm
by amaitland
What version are you using?

What exactly is the problem?

Re: CEF NTML C#

PostPosted: Thu Jan 28, 2021 10:21 pm
by dakstar
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))

Re: CEF NTML C#

PostPosted: Thu Jan 28, 2021 10:59 pm
by amaitland
Version 79.1.360 is old and unsupported. Does it work with version 86?

Re: CEF NTML C#

PostPosted: Thu Jan 28, 2021 11:02 pm
by dakstar
amaitland wrote:Version 79.1.360 is old and unsupported. Does it work with version 86?

Today I will check and unsubscribe

Re: CEF NTML C#

PostPosted: Fri Jan 29, 2021 8:18 am
by dakstar
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

Re: CEF NTML C#

PostPosted: Fri Jan 29, 2021 9:26 am
by amaitland
Have you checked the log file for errors? https://github.com/cefsharp/CefSharp/wi ... g#log-file

Re: CEF NTML C#

PostPosted: Fri Jan 29, 2021 4:57 pm
by dakstar
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

Re: CEF NTML C#

PostPosted: Fri Jan 29, 2021 5:04 pm
by dakstar
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

Re: CEF NTML C#

PostPosted: Fri Jan 29, 2021 5:16 pm
by amaitland
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.