jhthorsen / openapi-client

A client for talking to an Open API powered server
11 stars 17 forks source link

authorization/API keys? #43

Closed rlauer6 closed 3 months ago

rlauer6 commented 10 months ago

Maybe I'm missing something in the docs but how do you pass API keys and other parameters defined in the security section?

castaway commented 3 months ago
$client->on('after_build_tx' => sub {
    my ($client, $tx) = @_;
    $tx->req->headers->authorization('Bearer ' . $key);
});