XeroAPI / Xero-NetStandard

A wrapper of the Xero API in the .NetStandard 2.0 framework. Supports Accounting, Payroll AU/US, and Files
MIT License
127 stars 124 forks source link

Method Not Found: after IdentityModel package updated to 7.0.0 #554

Open trevor-anthill opened 2 months ago

trevor-anthill commented 2 months ago

SDK you're using (please complete the following information):

Describe the bug After updating to v9.1.0, and v7.0.0 of IdentityModel and removing the RestSharp package, attempting to connect my app to Xero api I get a Method not found exception when calling "client.BuildLoginUri();"

To Reproduce Steps to reproduce the behavior:

  1. Install Xero.NetStandard.OAuth2 (9.1.0) and Xero.NetStandard.OAuth.Client (1.6.0) packages
  2. Update IdentityModel package to 7.0.0
  3. Create XeroConfiguration object
  4. Create XeroClient object with config object
  5. call client.BuildLoginUri();
  6. Exception is thrown

Expected behavior Expected to have a URL to be returned from BuildLoginUri method

Screenshots N/A

github-actions[bot] commented 2 months ago

PETOSS-581

github-actions[bot] commented 2 months ago

Thanks for raising an issue, a ticket has been created to track your request

onuryavuzmeral commented 2 months ago

Downgrading identity model to 5.2 worked for me.

ReviveDigitalTeam commented 2 months ago

We have been unable to upgrade these 2 packages for months due to this exact issue. The issue appears to be the Xero.NetStandard.OAuth2Client package needs updating.

<PackageVersion Include="Microsoft.Identity.Abstractions" Version="6.0.0" />
<PackageVersion Include="IdentityModel" Version="6.2.0" />

When we upgrade these to v7+ we get method not found exception when calling "client.BuildLoginUri();"

trevor-anthill commented 1 month ago

We have been unable to upgrade these 2 packages for months due to this exact issue. The issue appears to be the Xero.NetStandard.OAuth2Client package needs updating.

<PackageVersion Include="Microsoft.Identity.Abstractions" Version="6.0.0" />
<PackageVersion Include="IdentityModel" Version="6.2.0" />

When we upgrade these to v7+ we get method not found exception when calling "client.BuildLoginUri();"

I concur, the problem is not just the Xero.NetStandard.OAuth2 package needing an update, it's also the Xero.NetStandard.OAuth2Client nuget package that needs versioning.

Hona commented 4 days ago

Was there any update on this getting triaged?