Configuration.authCloud constructor

Configuration.authCloud(
  1. {required dynamic hostname,
  2. Duration? networkTimeout,
  3. Duration? authenticationRetryInterval,
  4. int? authenticationMaxRetries,
  5. Duration? userInteractionTimeout,
  6. String? facetId}
)

This is a convenience version of the default initializer of this Configuration, that can only be used when your application interacts with the Nevis Auth Cloud.

If you are fine with the default network parameters, you just need to provide the hostname.

Params:

  • hostname: the hostname of your Nevis Auth Cloud.
  • networkTimeout: time interval for network calls in seconds. If not provided, 60 seconds will be used.
  • authenticationRetryInterval: time interval for authentication in seconds. If not provided, 1 second will be used.
  • authenticationMaxRetries: the maximum number of retries for authentication. If not provided, 3 will be used.
  • userInteractionTimeout: the user interaction timeout in seconds. If not provided, 4 minutes (240 seconds) will be used.
  • facetId: Facet ID of the application.

Implementation

factory Configuration.authCloud({
  required hostname,
  Duration? networkTimeout,
  Duration? authenticationRetryInterval,
  int? authenticationMaxRetries,
  Duration? userInteractionTimeout,
  String? facetId,
}) {
  return ConfigurationImpl.authCloud(
    hostname: hostname,
    networkTimeout: networkTimeout,
    authenticationMaxRetries: authenticationMaxRetries,
    authenticationRetryInterval: authenticationRetryInterval,
    userInteractionTimeout: userInteractionTimeout,
    facetId: facetId,
  );
}