Running changelog of releases since 2.0.1
- Update
Newtonsoft.Json
package to v13.0.1
- Set default authorization header if token is specified in configuration
- Update
Microsoft.Extensions.Configuration
packages to v6
- Fix for Okta.Sdk issue #526 Unable to create OktaClient on linux build server after 5.2.1 upgrade.
- Fix for null properties treated as empty strings issue (
ObjectExtension
). - Exception was thrown when null object was passed in (
ObjectExtension
).
- Remove FlexibleConfiguration dependency and use Microsoft Configuration providers instead.
- Add
OktaOAuthException
to represent OAuth errors.
- Moved
StatusCode
property toOktaException
to be accessible by derived classes. - Refactor
OktaIonApiException
to show the message that comes from the server instead of(StatusCode):(Message)
.
- Change in default behavior when serializing resources (JSON objects). Previously, null resource properties would result in a resource object with all its properties set to
null
. Now, null resource properties would result innull
property value.
Before:
{ deserializedResource.Prop1.Should().Be("Hello World!");
prop1 : "Hello World!", => deserializedResource.NestedObject.Should().NotBeNull();
nestedObject: null deserializedResource.NestedObject.Prop1.Should().BeNull();
}
Now:
{ deserializedResource.Prop1.Should().Be("Hello World!");
prop1 : "Hello World!", => deserializedResource.NestedObject.Should().BeNull();
nestedObject: null
}
- Add support for
json+ion
forms validation error responses
- Add sanity check for null headers when parsing errors.
- Sanitize runtime version token in
UserAgentBuilder
. Bracket symbols are replaced with dashes on sanitization.
- Add support for
json+ion
error responses. - Add support to configure Authorization Headers.
- Rename
CreatedScoped
toCreateScoped
. - Add
SendAsync
method inBaseOktaClient
.
- Preserve timezone when date-formatted strings are deserialized as DateTime.