Xero-NetStandard icon indicating copy to clipboard operation
Xero-NetStandard copied to clipboard

Method Not Found: after IdentityModel package updated to 7.0.0

Open trevor-anthill opened this issue 1 year ago • 7 comments

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

  • Version 9.1.0
  • IdentityModel 7.0.0

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

trevor-anthill avatar Sep 10 '24 16:09 trevor-anthill

PETOSS-581

github-actions[bot] avatar Sep 10 '24 16:09 github-actions[bot]

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

github-actions[bot] avatar Sep 10 '24 16:09 github-actions[bot]

Downgrading identity model to 5.2 worked for me.

onuryavuzmeral avatar Sep 23 '24 07:09 onuryavuzmeral

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();"

ReviveDigitalTeam avatar Sep 26 '24 23:09 ReviveDigitalTeam

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.

trevor-anthill avatar Oct 07 '24 11:10 trevor-anthill

Was there any update on this getting triaged?

Hona avatar Nov 22 '24 00:11 Hona

There is a code fix on the repo, but a new version of the Xero.NetStandard.OAuth2Client package has not been released. What's going on here?

andrew-from-toronto avatar Feb 12 '25 20:02 andrew-from-toronto

Did this get resolved? I have the same issue when trying to add new Xero tennants: "Method not found: 'System.String IdentityModel.Client.RequestUrlExtensions.CreateAuthorizeUrl"

Version: Xero.NetStandard.OAuth2 - 9.2.0. Xero.NetStandard.OAuth2Client - 1.6.0 IdentityModel - 7.0.0

slykiwi avatar Apr 21 '25 23:04 slykiwi