auth0/auth0.net

Client Deserialization Issue

amummaprojectmanager opened this issue · 1 comments

Checklist

  • I have looked into the Readme and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

In a recent update, Auth0 added some additional possible values to the organization_require_behavior entry. The enum needs updated to allow post_login_prompt

https://auth0.com/docs/api/management/v2/clients/get-clients

/// Do not prompt for an organization

Reproduction

Set up an Application\Client in Auth0 attempting to use the post_login_prompt setting. Deserialization will start to fail on the client
image

Additional context

Error Message received is the following

Error converting value "post_login_prompt" to type 'System.Nullable1[Auth0.ManagementApi.Models.OrganizationRequireBehavior]'. Path '[0].organization_require_behavior', line 1, position 465`

auth0.net version

7.22.0.0

.NET version

4.7, Core 7

Thanks, I opened a PR to fix this