kailash-b / auth0.net

.NET client for the Auth0 Authentication & Management APIs.
https://auth0.com
MIT License
1 stars 0 forks source link

Actions object missing installed integration data #2

Open kailash-b opened 5 hours ago

kailash-b commented 5 hours ago

Checklist

Description

The Actions API objects are missing data about installed integrations.

The following data is not captured by the de-serialized .NET objects:

"installed_integration_id": "a758bb11-51fd-4e81-b707-e41f565fd046",
      "integration": {
        "id": "750ce7ba-eac5-44a2-97ac-a67b2183bdea",
        "catalog_id": "auth0-country-based-access",
        "url_slug": "country-based-access",
        "partner_id": "d929f92d-efd5-465f-9801-cdd40bfe2c39",
        "name": "Country-based Access",
        "description": "This integration allows you to restrict access to your applications by country. You may choose to implement Country-based Access controls for various reasons, including to allow your applications to comply with unique restrictions based on where you do business. \n\nWith the Country-based Access integration, you can define any and all countries to restrict persons and entities from those countries logging into your applications. ",
        "short_description": "Restrict access to users by country",
        "logo": "https://cdn.auth0.com/marketplace/catalog/content/assets/creators/auth0/auth0-avatar.png",
        "terms_of_use_url": "https://cdn.auth0.com/website/legal/files/mktplace/auth0-integration.pdf",
        "public_support_link": "https://support.auth0.com/",
        "updated_at": "2022-05-18T22:38:09.809749669Z",
        "created_at": "2022-05-12T19:54:02.958669136Z",
        "feature_type": "action",
        "current_release": {
          "id": "",
          "semver": {}
        }
      },

I'm writing code to automate the installation and configuration of Actions in .NET, and I need this information to be able to complete the features I'm working on.

Reproduction

  1. Start up Fiddler
  2. Make a request to the Actions API: ManagementApiClient.Actions.GetAllAsync(new GetActionsRequest(), new PaginationInfo(), cancellationToken)
  3. Loop through the resulting object list in the debugger
  4. See that the .NET object does not contain information about installed integrations, but the returned payload does.

Additional context

No response

auth0.net version

7.26.1

.NET version

8.0.4

dosubot[bot] commented 5 hours ago

To address the issue of missing installed integration data in the Actions API objects, you will need to update the deserialization process in the auth0.net library to include these fields. Here’s a general approach you can take:

  1. Update the Model: Modify the ActionBase class or create a new class to include the missing fields such as installed_integration_id and the integration object with its properties.

  2. Deserialization: Ensure that the deserialization logic in the ManagementApiClient.Actions.GetAllAsync method is updated to map these new fields from the API response to your .NET objects. This might involve updating the JSON deserialization attributes or logic.

  3. Testing: After making these changes, update or add new tests to verify that the new fields are correctly populated in the .NET objects.

  4. Documentation: Update any relevant documentation to reflect the changes in the object structure.

Unfortunately, I couldn't find specific details in the repository about where exactly the deserialization occurs or any existing extension methods that might help with this. You might need to explore the codebase to locate the deserialization logic and make the necessary changes.

To continue talking to Dosu, mention @dosu.