JSON Encoders and Decoders for the OAuthMiddleware module.
The state sent to the redirectUri.
This is created by OAuthMiddleware.authorize from the passed TokenAuthorization.
If an error occurs getting a token from the token server,
it is encoded in a ResponseTokenError.
Encode the redirectBackUri and user state for the authorization server.
Decode the state encoded by encodeRedirectState.
Encode the ResponseToken that is received by the redirect server
from its call to OAuth.AuthorizationCode.authenticate.
Decode the ResponseToken that is sent back to the redirectUri
from the redirect server.
Encode the ResponseTokenError that may be sent back to the
redirectUri from the redirect server.
Decode the ResponseTokenError that may be sent back to the
redirectUri from the redirect server.
Decode an Authorization list.
Usually used via OAuthMiddleware.getAuthorizations.
Encode an Authorization list.
Decode an Authorization.
Usually used via OAuthMiddleware.getAuthorization.
Encode an Authorization.
Decode the state sent to the authenticate server
via OAuth.AuthorizationCode.authenticate and received
by the redirect server.
Encode the state sent to the authenticate server
via OAuth.AuthorizationCode.authenticate and received
by the redirect server.
Decode the "response-token" query arg for the redirectBackUri.
Changes the default by swapping lenientScopeDecoder for scopeDecoder.
This isn't necessary on the client side, but is needed by the server for GitHub.
Encode the "response-token" query arg for the redirectBackUri
Decode a ResponseTokenError.
Turn a ResponseTokenError into a Value.
Simple encoder for a nullable string.
Authorization information to send to the redirect (callback) server.
Usually stored in a JSON file, and read and decoded by
OAuthMiddleware.getAuthorizationsorOAuthMiddleware.getAuthorization.