Auth0Client
Namespace: HttpFs.Auth0
Interactions with requests.
Functions and values
Function or value | Description |
addAuth0TokenHeader a0token req
Signature: a0token:Auth0Token -> req:Request -> Request
|
Adds an Auth0 token to the request in an Authorization header.
|
addAuth0TokenHeaderFromSource ats cp req
Signature: ats:(Uri -> ClientParams -> '?7641) -> cp:ClientParams -> req:Request -> Job<Request>
Type parameters: '?7641
|
Attempts to retrieve an Auth0 token from an asynchronous source, adding it
to the request if available.
|
tryGetResponseWithAuthSource ats cp req
Signature: ats:(Uri -> ClientParams -> '?7643) -> cp:ClientParams -> req:Request -> Alt<Choice<Response,exn>>
Type parameters: '?7643
|
Attempts retrieve an Auth0 token from an asynchronous source, adding it
to the request if available and then processes the request.
|
tryGetResponseWithRetryOnAuthRequired (...)
Signature: ats:(Uri -> ClientParams -> '?7648) -> req:Request -> Alt<Choice<Response,exn>>
Type parameters: '?7648
|
Attempts to process a request, then if the response is 401 Unauthorized ,
retries the request after retrieving an Auth0 token from an asynchronous source.
The result of the retried response or any other initial response is returned.
|
tryWithRetryOnAuthRequired (...)
Signature: ats:(Uri -> ClientParams -> '?7645) -> req:Request -> respCJ:'?7646 -> Alt<Choice<Response,exn>>
Type parameters: '?7645, '?7646
|
Handles a response. If the response is 401 Unauthorized , attempts to
retrieve an Auth0 token and if available, retries the request with the
token added to the request. The result of the retry is returned. In all
other cases, the response is passed through unaltered.
|