TokenRequest constructor
TokenRequest(
- String clientId,
- String redirectUrl, {
- String? clientSecret,
- List<
String> ? scopes, - String? issuer,
- String? discoveryUrl,
- AuthorizationServiceConfiguration? serviceConfiguration,
- Map<
String, String> ? additionalParameters, - String? refreshToken,
- String? grantType,
- String? authorizationCode,
- String? codeVerifier,
- 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();
}