Skip to content

Cannot read Active Directory app #821

@MichaelGrafnetter

Description

@MichaelGrafnetter

Describe the bug?

Most properties of the active_directory application, representing an AD directory integration, cannot be read using the Okta SDK 10.0.1.

What is expected to happen?

At least the "name": "active_directory" property should be readable.

What is the actual behavior?

The application type in the OpenAPI specification is identified by the signOnMode attribute:

discriminator:
  propertyName: signOnMode
  mapping:
    AUTO_LOGIN: '#/components/schemas/AutoLoginApplication'
    BASIC_AUTH: '#/components/schemas/BasicAuthApplication'
    BOOKMARK: '#/components/schemas/BookmarkApplication'
    BROWSER_PLUGIN: '#/components/schemas/BrowserPluginApplication'
    OPENID_CONNECT: '#/components/schemas/OpenIdConnectApplication'
    SAML_1_1: '#/components/schemas/Saml11Application'
    SAML_2_0: '#/components/schemas/SamlApplication'
    SECURE_PASSWORD_STORE: '#/components/schemas/SecurePasswordStoreApplication'
    WS_FEDERATION: '#/components/schemas/WsFederationApplication'

The problem is that for the active_directory applications, signOnMode is always returned with the null value from the API:

{
  "id": "0oaw2s86uvbMgRqW6697",
  "orn": "orn:okta:idp:00ow0o8if0CNwsKmk697:apps:active_directory:0oaw2s86uvbMgRqW6697",
  "name": "active_directory",
  "label": "contoso.com",
  "status": "ACTIVE",
...
  "signOnMode": null,
...
  "settings": {
      "app": {
          "jitGroupsAcrossDomains": false,
          "password": null,
          "scanRate": null,
          "searchOrgUnit": null,
          "filterGroupsByOU": false,
          "namingContext": "contoso.com",
          "login": null,
          "activationEmail": null
      },

It is thus impossible to read name and settings.app.namingContext attributes.

Reproduction Steps?

ApplicationApi appApi = new(_oktaConfig);

await foreach (var application in appApi.ListApplications(cancellationToken: cancellationToken).ConfigureAwait(false))
{
  // The application.Name property does not exist.
  // The application.Settings.App["namingContext"] nor application.Settings.App.AdditionalProperties["namingContext"] properties dot exist.
}

Additional Information?

No response

.NET Version

10.0.100

SDK Version

10.0.1

OS version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions