AceSecurityCallback typedef

AceSecurityCallback = Future<AceCredentials?> Function(Uri uri, Form? form, AuthServerRequestCreationHint? creationHint, AceCredentials? invalidAceCredentials)

Function signature for an asynchronous callback for providing client AceCredentials at runtime, based on an optional creationHint given by the Resource Server. This creation hint has to be parsed by the library user.

If a request with an access token has failed before, leading to an "Unauthorized" response, the invalidAceCredentials from the previous request are returned as an additional parameter.

Implementation

typedef AceSecurityCallback = Future<AceCredentials?> Function(
  Uri uri,
  Form? form,
  AuthServerRequestCreationHint? creationHint,
  AceCredentials? invalidAceCredentials,
);