TokenRequest constructor

TokenRequest(
  1. String clientId,
  2. String redirectUrl, {
  3. String? clientSecret,
  4. List<String>? scopes,
  5. String? issuer,
  6. String? discoveryUrl,
  7. AuthorizationServiceConfiguration? serviceConfiguration,
  8. Map<String, String>? additionalParameters,
  9. String? refreshToken,
  10. String? grantType,
  11. String? authorizationCode,
  12. String? codeVerifier,
  13. bool allowInsecureConnections = false,
})

Implementation

TokenRequest(
  String clientId,
  String redirectUrl, {
  this.clientSecret,
  List<String>? scopes,
  String? issuer,
  String? discoveryUrl,
  AuthorizationServiceConfiguration? serviceConfiguration,
  Map<String, String>? additionalParameters,
  this.refreshToken,
  this.grantType,
  this.authorizationCode,
  this.codeVerifier,
  bool allowInsecureConnections = false,
}) {
  this.clientId = clientId;
  this.redirectUrl = redirectUrl;
  this.scopes = scopes;
  this.serviceConfiguration = serviceConfiguration;
  this.additionalParameters = additionalParameters;
  this.issuer = issuer;
  this.discoveryUrl = discoveryUrl;
  this.allowInsecureConnections = allowInsecureConnections;
  assertConfigurationInfo();
}