submitConsentWithHttpInfo method
Submit consent
Submits the user's consent decision for an OAuth authorization request. If approved, grants consent and returns a redirect URI with an authorization code. If denied, returns a redirect URI with an error.
Note: This method returns the HTTP Response.
Parameters:
- ConsentRequest consentRequest (required):
Implementation
Future<Response> submitConsentWithHttpInfo(ConsentRequest consentRequest,) async {
// ignore: prefer_const_declarations
final path = r'/oauth/consent';
// ignore: prefer_final_locals
Object? postBody = consentRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}