fetchOidcConfig function

Future<OidcProviderConfig> fetchOidcConfig(
  1. Client httpClient,
  2. String endpoint
)

Fetch the OIDC provider configuration.

Implementation

Future<OidcProviderConfig> fetchOidcConfig(
    http.Client httpClient, String endpoint) async {
  final response = await httpClient.get(Uri.parse(endpoint));

  var body = httpResponseHandler(response);

  return OidcProviderConfig.fromJson(body);
}