src/auth.bend checks
raw source on the hub · import emerging-ezhttp@0.19.0.0/src/auth.bend as Auth
ezhttp/src/auth: Authorization header values, pure. Kept apart from client.bend (which reaches the wire effect) so the proof gate can import it.
3 imports
import Base import ./http.bend as Http import ./b64.bend as B64
Definitions
def auth.bearer source · line 8 · raw
@token:String -> 0x60f672946f1b37cf58e2c05154bec295/src/http.Header
Authorization: Bearer … (RFC 6750)
def auth.basic source · line 12 · raw
@user:String -> @password:String -> 0x60f672946f1b37cf58e2c05154bec295/src/http.Header
Authorization: Basic … (RFC 7617, credentials are RFC 4648 Base64)