okta / okta-sdk-dotnet

A .NET SDK for interacting with the Okta management API, enabling server-side code to manage Okta users, groups, applications, and more.
Other
160 stars 100 forks source link

Allow XML responses #480

Closed andriizhegurov-okta closed 3 years ago

andriizhegurov-okta commented 3 years ago

Issue \

Code

Current behavior

The SDK doesn't allow XML responses

Desired behavior

Additional Context

Example of working with an XML response:

    var appMetadata = await client.Applications.AppSamlMetadataAsync(app.Id);
    var xmlString = appMetadata["_rawData"].ToString();

    XmlDocument doc = new XmlDocument();
    doc.LoadXml(xmlString);
//..................