-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Labels
Description
Describe the bug?
The Application class does not contain the Name property, which all applications seem to have. It is instead defined on all child classes.
What is expected to happen?
The Application class should have this property instead of the child classes:
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { get; private set; }What is the actual behavior?
Only child classes like SamlApplication, AutoLoginApplication, or OpenIdConnectApplication have the Name property.
Reproduction Steps?
Retrieving the app name is currently very cumbersome:
ApplicationApi appApi = new(_oktaConfig);
await foreach (var application in appApi.ListApplications(cancellationToken: cancellationToken).ConfigureAwait(false))
{
string? name = null;
if (application is SamlApplication samlApp)
{
name = samlApp.Name;
}
else if (application is OpenIdConnectApplication oidcApp)
{
name = oidcApp.Name?.Value;
}
else if (application is AutoLoginApplication swaApp)
{
name = swaApp.Name;
}
// The same for WsFederationApplication, BookmarkApplication, etc.
}Additional Information?
No response
.NET Version
10.0.100
SDK Version
10.0.1
OS version
No response