Module: Keycardai::OAuth::HTTP
- Defined in:
- lib/keycardai/oauth/http.rb
Overview
Pluggable HTTP transport. Every network operation in the SDK goes through an object with this surface, so tests and custom transport policies can inject their own client. No hidden retries: retry policy belongs to the injected client.
Defined Under Namespace
Classes: NetHTTPClient, Response
Class Method Summary collapse
-
.basic_authorization(client_id, client_secret) ⇒ String
Build an HTTP Basic Authorization header value (RFC 7617).
Class Method Details
.basic_authorization(client_id, client_secret) ⇒ String
Build an HTTP Basic Authorization header value (RFC 7617).
25 26 27 |
# File 'lib/keycardai/oauth/http.rb', line 25 def self.(client_id, client_secret) "Basic #{["#{client_id}:#{client_secret}"].pack("m0")}" end |