internalCreateSettingsActionRequest method

Future<InternalAuthenticateRequest> internalCreateSettingsActionRequest(
  1. String clientID,
  2. String idTokenHint,
  3. String loginHint,
  4. SettingsActionOptions options,
)

Implementation

Future<InternalAuthenticateRequest> internalCreateSettingsActionRequest(
    String clientID,
    String idTokenHint,
    String loginHint,
    SettingsActionOptions options) async {
  final codeVerifier = CodeVerifier(_rng);
  final oidcRequest =
      options.toRequest(clientID, idTokenHint, loginHint, codeVerifier);
  final url = await internalBuildAuthorizationURL(oidcRequest);

  return InternalAuthenticateRequest(
    url: url,
    redirectURI: oidcRequest.redirectURI,
    verifier: codeVerifier,
  );
}