OAuthClient constructor
OAuthClient(
- OAuthClientMetadata metadata, {
- IdentityResolver? identityResolver,
- OAuthStateStore? stateStore,
- OAuthSessionStore? sessionStore,
- DPoPNonceCache? nonceCache,
- DPoPSigner? signer,
- Client? httpClient,
- bool allowPrivateNetwork = false,
Implementation
OAuthClient(
this.metadata, {
final IdentityResolver? identityResolver,
final OAuthStateStore? stateStore,
final OAuthSessionStore? sessionStore,
final DPoPNonceCache? nonceCache,
final DPoPSigner? signer,
final http.Client? httpClient,
final bool allowPrivateNetwork = false,
}) : _identityResolver =
identityResolver ??
HttpIdentityResolver(
httpClient: httpClient,
allowPrivateNetwork: allowPrivateNetwork,
),
_stateStore = stateStore ?? InMemoryOAuthStateStore(),
_sessionStore = sessionStore ?? InMemoryOAuthSessionStore(),
_nonceCache = nonceCache ?? InMemoryDPoPNonceCache(),
_signer = signer ?? const PointyCastleDPoPSigner(),
_httpClient = httpClient,
_allowPrivateNetwork = allowPrivateNetwork;