CarpApp constructor

CarpApp({
  1. required String name,
  2. required Uri uri,
  3. required Uri authURL,
  4. required String clientId,
  5. String? clientSecret,
  6. required Uri redirectURI,
  7. required Uri discoveryURL,
  8. String? studyDeploymentId,
  9. String? studyId,
  10. Uri? logoutRedirectURI,
})

Create a CarpApp which know how to access a CARP backend.

name, uri, and oauth are required parameters in order to identify, address, and authenticate this client.

A studyDeploymentId and a study may be specified, if known at the creation time.

Implementation

CarpApp({
  required this.name,
  required this.uri,
  required this.authURL,
  required this.clientId,
  this.clientSecret,
  required this.redirectURI,
  required this.discoveryURL,
  this.studyDeploymentId,
  this.studyId,
  this.logoutRedirectURI,
});