setAuthorizationParams method

  1. @deprecated
void setAuthorizationParams({
  1. required int grantType,
  2. required String clientId,
  3. String? clientSecret,
  4. List<String>? scopes,
  5. bool? enablePKCE,
  6. bool? enableState,
  7. Map<String, dynamic>? authCodeParams,
  8. Map<String, dynamic>? accessTokenParams,
})

Sets the proper parameters for requesting an authorization token.

The parameters are validated depending on the grantType.

Implementation

@deprecated
void setAuthorizationParams(
    {required int grantType,
    required String clientId,
    String? clientSecret,
    List<String>? scopes,
    bool? enablePKCE,
    bool? enableState,
    Map<String, dynamic>? authCodeParams,
    Map<String, dynamic>? accessTokenParams}) {
  this.grantType = grantType;
  this.clientId = clientId;
  this.clientSecret = clientSecret;
  this.scopes = scopes;
  this.enablePKCE = enablePKCE ?? true;
  this.enableState = enableState ?? true;
  this.authCodeParams = authCodeParams;
  this.accessTokenParams = accessTokenParams;

  _validateAuthorizationParams();
}