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):
7373 # and POST request.
7474 query_dict = self .request .POST if self .request .method == "POST" else self .request .GET
7575
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" , "" ))
8077 self .params ["redirect_uri" ] = query_dict .get ("redirect_uri" , "" )
8178 self .params ["response_type" ] = query_dict .get ("response_type" , "" )
8279 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):
2828 # Introspection only supports POST requests
2929 self .params ["token" ] = self .request .POST .get ("token" )
3030 client_id , client_secret = extract_client_auth (self .request )
31- # Sanitize client_id to remove control characters that cause PostgreSQL errors
3231 self .params ["client_id" ] = sanitize_client_id (client_id )
3332 self .params ["client_secret" ] = client_secret
3433
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ def __init__(self, request):
3232 def _extract_params (self ):
3333 client_id , client_secret = extract_client_auth (self .request )
3434
35- # Sanitize client_id to remove control characters that cause PostgreSQL errors
3635 self .params ["client_id" ] = sanitize_client_id (client_id )
3736 self .params ["client_secret" ] = client_secret
3837 self .params ["redirect_uri" ] = self .request .POST .get ("redirect_uri" , "" )
You can’t perform that action at this time.
0 commit comments