AuthenticationInterceptor class manages the queuing and threading complexity of authenticating requests.
It relies on an
Authenticator type to handle the actual
URLRequest authentication and
Type of credential used to authenticate requests.
public typealias Credential = AuthenticatorType.Credential
Type that defines a time window used to identify excessive refresh calls. When enabled, prior to executing a refresh, theSee more
AuthenticationInterceptorcompares the timestamp history of previous refresh calls against the
RefreshWindow. If more refreshes have occurred within the refresh window than allowed, the refresh is cancelled and an
AuthorizationError.excessiveRefresherror is thrown.
public struct RefreshWindow
public func adapt(_ urlRequest: URLRequest, for session: Session, completion: @escaping (Result<URLRequest, Error>) -> Void)