AuthorizationRequest constructor

AuthorizationRequest(
  1. Config config, {
  2. bool fullScreen = true,
  3. bool clearCookies = false,
})

Implementation

AuthorizationRequest(Config config, {bool fullScreen = true, bool clearCookies = false}) {
  url = config.authorizationUrl;
  redirectUrl = config.redirectUri;
  parameters = {
    'client_id': config.clientId,
    'response_type': config.responseType,
    'redirect_uri': config.redirectUri,
    'scope': config.scope
  };
  if (kIsWeb) {
    parameters.addAll({'nonce': config.nonce});
  }
  this.fullScreen = fullScreen;
  this.clearCookies = clearCookies;
}