Authenticator constructor

Authenticator(
  1. Client client, {
  2. int port = 3000,
  3. dynamic urlLancher(
    1. String url
    ) = _runBrowser,
  4. Iterable<String> scopes = const [],
  5. Uri? redirectUri,
  6. RedirectHtmlType redirectHtmlType = RedirectHtmlType.htmlDefault,
  7. String redirectHtmlCustom = '',
})

Implementation

Authenticator(Client client,
    {this.port = 3000,
    this.urlLancher = _runBrowser,
    Iterable<String> scopes = const [],
    Uri? redirectUri,
    this.redirectHtmlType = RedirectHtmlType.htmlDefault,
    this.redirectHtmlCustom = ''})
    : flow = redirectUri == null
          ? Flow.authorizationCodeWithPKCE(client)
          : Flow.authorizationCode(client)
        ..scopes.addAll(scopes)
        ..redirectUri = redirectUri ?? Uri.parse('http://localhost:$port/');