src/auth.bend checks
raw source on the hub · import ezhttp@0.24.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 -> 0x8673751971e75cc0377d73b25bc4d890/src/http.Header
Authorization: Bearer … (RFC 6750)
def auth.basic source · line 12 · raw
@user:String -> @password:String -> 0x8673751971e75cc0377d73b25bc4d890/src/http.Header
Authorization: Basic … (RFC 7617, credentials are RFC 4648 Base64)