rotateOAuthApplicationSecretWithHttpInfo method

Future<Response> rotateOAuthApplicationSecretWithHttpInfo(
  1. String oauthApplicationId
)

Rotate the client secret of the given OAuth application

Rotates the OAuth application's client secret. When the client secret is rotated, make sure to update it in authorized OAuth clients.

Note: This method returns the HTTP Response.

Parameters:

  • String oauthApplicationId (required): The ID of the OAuth application for which to rotate the client secret

Implementation

Future<http.Response> rotateOAuthApplicationSecretWithHttpInfo(
  String oauthApplicationId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/oauth_applications/{oauth_application_id}/rotate_secret'
      .replaceAll('{oauth_application_id}', oauthApplicationId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}