File tree Expand file tree Collapse file tree 3 files changed +1
-6
lines changed
oidc_provider/lib/endpoints Expand file tree Collapse file tree 3 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,7 @@ def _extract_params(self):
73
73
# and POST request.
74
74
query_dict = self .request .POST if self .request .method == "POST" else self .request .GET
75
75
76
- # Sanitize client_id to remove control characters that cause PostgreSQL errors
77
- client_id = query_dict .get ("client_id" , "" )
78
- self .params ["client_id" ] = sanitize_client_id (client_id )
79
-
76
+ self .params ["client_id" ] = sanitize_client_id (query_dict .get ("client_id" , "" ))
80
77
self .params ["redirect_uri" ] = query_dict .get ("redirect_uri" , "" )
81
78
self .params ["response_type" ] = query_dict .get ("response_type" , "" )
82
79
self .params ["scope" ] = query_dict .get ("scope" , "" ).split ()
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ def _extract_params(self):
28
28
# Introspection only supports POST requests
29
29
self .params ["token" ] = self .request .POST .get ("token" )
30
30
client_id , client_secret = extract_client_auth (self .request )
31
- # Sanitize client_id to remove control characters that cause PostgreSQL errors
32
31
self .params ["client_id" ] = sanitize_client_id (client_id )
33
32
self .params ["client_secret" ] = client_secret
34
33
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ def __init__(self, request):
32
32
def _extract_params (self ):
33
33
client_id , client_secret = extract_client_auth (self .request )
34
34
35
- # Sanitize client_id to remove control characters that cause PostgreSQL errors
36
35
self .params ["client_id" ] = sanitize_client_id (client_id )
37
36
self .params ["client_secret" ] = client_secret
38
37
self .params ["redirect_uri" ] = self .request .POST .get ("redirect_uri" , "" )
You can’t perform that action at this time.
0 commit comments