Tcl Library Source Code

View Ticket
Login
Ticket UUID: cd5c0748401d9a56d42d3641dac8c0708e27a769
Title: Bearer Authentication in create_interface
Type: Patch Version: 2.0
Submitter: anonymous Created on: 2025-12-10 16:22:55
Subsystem: rest Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2025-12-10 16:22:55
Resolution: None Closed By: nobody
    Closed on:
Description:
Add autentication-type bearer in create_interface:

--- rest.tcl    2024-09-17 18:54:34.000000000 +0200
+++ /inst/tool/build/tcllib-2.0/modules/rest/rest.tcl   2025-12-10 16:47:44.330968249 +0100
@@ -218,6 +218,8 @@
                         variable password $p
                     }
                 }
+           } elseif {[lindex $auth 0] == "bearer"} {
+               lappend proc "lappend headers Authorization \"Bearer [lindex $auth 1]\""
             }
         }