Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/authlib/authlib
/ create_basic_auth
Function
create_basic_auth
tests/django/test_oauth2/oauth2_server.py:7–10 ·
view source on GitHub ↗
(username, password)
Source
from the content-addressed store, hash-verified
5
6
7
def
create_basic_auth(username, password):
8
text = f
"{username}:{password}"
9
auth = to_unicode(base64.b64encode(to_bytes(text)))
10
return
"Basic "
+ auth
Callers
15
test_invalid_client
Function · 0.85
test_invalid_scope
Function · 0.85
test_invalid_request
Function · 0.85
test_unauthorized_client
Function · 0.85
test_authorize_token
Function · 0.85
test_invalid_client
Function · 0.85
test_invalid_scope
Function · 0.85
test_invalid_request
Function · 0.85
test_unauthorized_client
Function · 0.85
test_authorize_token
Function · 0.85
test_invalid_client
Function · 0.85
test_invalid_refresh_token
Function · 0.85
Calls
2
to_unicode
Function · 0.90
to_bytes
Function · 0.90
Tested by
15
test_invalid_client
Function · 0.68
test_invalid_scope
Function · 0.68
test_invalid_request
Function · 0.68
test_unauthorized_client
Function · 0.68
test_authorize_token
Function · 0.68
test_invalid_client
Function · 0.68
test_invalid_scope
Function · 0.68
test_invalid_request
Function · 0.68
test_unauthorized_client
Function · 0.68
test_authorize_token
Function · 0.68
test_invalid_client
Function · 0.68
test_invalid_refresh_token
Function · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…