msgraph-sdk-dotnet icon indicating copy to clipboard operation
msgraph-sdk-dotnet copied to clipboard

Support for Oauth2RequiredPostResponse for Application entities

Open sschocke opened this issue 8 months ago • 1 comments

Is your feature request related to a problem? Please describe the problem.

I am trying to backup and restore app registrations on Entra programmatically using the SDK, but the class Application doesn't have the attribute Oauth2RequiredPostResponse to match the attribute that comes back in the JSON from the endpoint.

Describe the solution you'd like.

The Application class should map the oauth2RequiredPostResponse attribute in the JSON to a property of the class, and back again for POST/PATCH endpoints

Additional context?

No response

sschocke avatar Apr 16 '25 13:04 sschocke

This is caused by incorrect metadata. The metadata is missing the 'd' oauth2RequiredPostResponse, while the documentation shows "oauth2RequiredPostResponse". This would mean this property is going into the AdditionalProperty bag for all of our client libraries. This is a service metadata issue and needs to be addressed in their metadata. @lramosvea can you follow up with this API owner to have them fix this issue?

      <EntityType Name="application" BaseType="graph.directoryObject" OpenType="true">
        <Property Name="oauth2RequirePostResponse" Type="Edm.Boolean" Nullable="false" />

MIchaelMainer avatar Dec 01 '25 20:12 MIchaelMainer