FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cefpython/cefpython/http_authentication_win.pyx at cefpython31 · cztomczak/cefpython · GitHub
cztomczak
/
cefpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
477
Star
3.2k
Code
Issues
223
Pull requests
4
Actions
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
cefpython
/
cefpython
/
http_authentication_win.pyx
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (17 loc) · 713 Bytes
Breadcrumbs
cefpython
/
cefpython
/
http_authentication_win.pyx
Copy path
File metadata and controls
18 lines (17 loc) · 713 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
#
License: New BSD License.
#
Website: http://code.google.com/p/cefpython/
cdef cpp_bool HttpAuthenticationDialog(
browser, isProxy, host, port, realm, scheme, username, password
)
except
*
:
cdef AuthCredentialsData
*
credentialsData
cdef
int
innerWindowHandle
=
browser.GetWindowHandle()
cdef HWND hwnd
=
<
HWND
>
innerWindowHandle
with
nogil:
credentialsData
=
AuthDialog(hwnd)
if
credentialsData
==
NULL
:
return
False
else
:
username[
0
]
=
CharToPyString(credentialsData.username.c_str())
password[
0
]
=
CharToPyString(credentialsData.password.c_str())
return
True
Back
|
FazBrowse Home
|
New Git URL