bend-kit-oauth2
Search uses release 0.11.0.1 · 56 definitions
Definitions (56)
- type ConfigRFC 6749 and RFC 7636.
- type Tokenkind: token_type, as "Bearer".
- type ErrErrNet: the request did not complete.
- def b64url.ch
- def b64url.go
- def b64urlBase64url without padding (RFC 4648 §5, RFC 7636 Appendix A).
- def utf8
- def field
- def scoped
- def form
- def basicRFC 6749 §2.3.1: id and secret are form-encoded before base64.
- def auth.headers
- def auth.body
- def bodyThe form body of a token request from cfg's client.
- type Got
- def got.put
- def got.textA string's text, or a number's, as some servers send expires_in as "3600".
- def got.go
- def got.obj
- def got
- def expiry
- def goodA 2xx with an access token of type Bearer (RFC 6750 §4, case-insensitive), the only kind request sends.
- def token.pick§6: a refresh reply without refresh_token keeps the old one.
- def token.of
- def parse.copy
- def parseA token endpoint's reply at status, requested at now.
- def reply
- def grant.done
- def grantPOST m to the token endpoint.
- def client_credentialsRFC 6749 §4.4.
- def codeRFC 6749 §4.1.3 with RFC 7636 §4.5: the code from callback, the same redirect_uri, and the verifier.
- def refresh.go
- def refreshRFC 6749 §6.
- def expiring.at
- def expiringDoes tok lapse within skew seconds of now?
- def fresh.go
- def freshtok, or a refreshed one when it lapses within skew seconds.
- def fresh.cc.go
- def fresh.cctok, or a new client-credentials token when it lapses within skew seconds (§4.4.3: no refresh token).
- def random.of
- def randomn octets from the OS secure random source, as base64url.
- def verifier§4.1: 32 random octets, 43 unreserved chars.
- def stateAn unguessable state for the authorization request (RFC 6749 §10.12).
- def challenge.words
- def challenge§4.2 S256: BASE64URL(SHA256(ASCII(verifier))).
- def qmark
- def authorize.urlRFC 6749 §4.1.1 with RFC 7636 §4.3: the URL to send the user to.
- def param.of
- def param
- def callback.pick
- def callback.m
- def callback.frag
- def callback.q
- def callback§4.1.2: the code in the redirect to redirect_uri, once its state matches ours; the server's error if it sent one.
- def bearer
- def requestHairpin.request with Authorization: Bearer <access>, over any authorization header in headers.