Skip to content

Commit 9fdb72b

Browse files
author
Vic May
committed
Fix HTTP command syntax in OIDC manual
- Replace tossl::http::get_enhanced with tossl::http::get - Update all HTTP command examples to use correct syntax - Fix API call examples in Google integration - Fix troubleshooting examples - Fix batch API operations example
1 parent 72a2a00 commit 9fdb72b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

OIDC_OAUTH_MANUAL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ puts ""
375375
puts "=== Step 10: Using Access Token for API Calls ==="
376376
puts "Making API call to Google People API..."
377377
378-
set api_response [tossl::http::get_enhanced \
378+
set api_response [tossl::http::get \
379379
"https://people.googleapis.com/v1/people/me?personFields=names,emailAddresses" \
380380
-headers "Authorization: Bearer [dict get $tokens access_token]"]
381381
@@ -680,7 +680,7 @@ if {[clock seconds] > $token_expiry} {
680680
**Solution**:
681681
```tcl
682682
# Test connectivity
683-
set test_response [tossl::http::get_enhanced "https://accounts.google.com/.well-known/openid_configuration"]
683+
set test_response [tossl::http::get "https://accounts.google.com/.well-known/openid_configuration"]
684684
if {[dict get $test_response error] ne ""} {
685685
error "Cannot reach Google OIDC: [dict get $test_response error]"
686686
}
@@ -822,7 +822,7 @@ proc batch_api_calls {access_token endpoints} {
822822
set results {}
823823
824824
foreach endpoint $endpoints {
825-
set response [tossl::http::get_enhanced $endpoint \
825+
set response [tossl::http::get $endpoint \
826826
-headers "Authorization: Bearer $access_token"]
827827
828828
lappend results [dict create endpoint $endpoint response $response]

0 commit comments

Comments
 (0)