Skip to content

Commit 1ebc175

Browse files
committed
Tolerate absence of client_id to allow edge cases
1 parent 5be7faf commit 1ebc175

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

oauth2cli/oauth2.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ def __init__(
141141
"""
142142
if not server_configuration:
143143
raise ValueError("Missing input parameter server_configuration")
144-
if not client_id:
145-
raise ValueError("Missing input parameter client_id")
144+
# Generally we should have client_id, but we tolerate its absence
146145
self.configuration = server_configuration
147146
self.client_id = client_id
148147
self.client_secret = client_secret

0 commit comments

Comments
 (0)