AuthTokenInterceptor class

Interceptor that inserts an Authenticaton Bearer header for V3 API calls

This is a naive interceptor that always attempts to get a new token on every call. This should only be used for testing purposes.

Implemented types
Annotations

Constructors

AuthTokenInterceptor({required String clientId, required String clientSecret, required String tokenUrl, required List<String> scopes, required String username, required String password})
const

Properties

clientId String
final
clientSecret String
final
hashCode int
The hash code for this object.
no setterinherited
password String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes List<String>
final
tokenUrl String
final
username String
final

Methods

intercept<BodyType>(Chain<BodyType> chain) FutureOr<Response<BodyType>>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited